Michael Vogel
e5c24f33f0
The fcontact table is now updated in the background to improve performance
2022-09-18 15:40:44 +02:00
Michael
79b64cc44f
Detect and remove contact duplicates
2022-09-16 05:00:06 +00:00
Michael
6eb9dff807
Pagecache for frequently fetched pages
2022-09-06 06:04:41 +00:00
Michael
757a5c2de9
Loglevels are adjusted
2022-08-30 19:45:30 +00:00
Michael
dd8279afc2
Some more protection against database errors
2022-08-25 18:47:07 +00:00
Michael
a4f1df68e4
Improved contact-id detection
2022-08-18 07:48:39 +00:00
Michael
5c5ae00370
Improved performance when updating contacts
2022-08-13 09:01:48 +00:00
Hypolite Petovan
4a885a13a6
Remove poke feature
2022-08-09 14:55:55 -04:00
Michael
f2eec66240
Hopefully fixes loops during message processing
2022-08-03 03:38:03 +00:00
Roland Häder
1210e235fb
Extracted as variable to have 2 more array fields moved to array initialization.
2022-07-29 17:20:09 +02:00
Roland Häder
676ca36c52
Changes:
...
- reformatted arrays
2022-07-29 17:20:07 +02:00
Roland Häder
f8ed028013
Changed back to $cdata
.
2022-07-29 12:41:08 +02:00
Roland Häder
eaed3945d1
Changed:
...
- used `$this->getRequestValue($request, 'foo', <bar>)` instead of `$request['foo'] ?? <bar>`
- fixed wrong variable naming
- changed double-quotes to single
- see https://github.com/friendica/friendica/issues/11631#issuecomment-1196410497
2022-07-29 00:38:46 +02:00
Michael
2ddf37f32d
Emergency fixes to fix a bunch of fatal errors
2022-07-17 11:47:12 +00:00
Roland Häder
a392a22eee
Changes:
...
- added some type-hints
- fixed some documentation (void is lately returned, not null)
- added some documentation
2022-06-27 15:16:17 +02:00
Roland Häder
8e19998191
Fixes:
...
- more "bool expected but null returned" errors
2022-06-27 13:49:53 +02:00
Roland Häder
88870d18be
Changes:
...
- added some type-hints
- added documentation
2022-06-25 16:48:36 +02:00
Roland Häder
39675fe683
Space for the rescue. ;-)
2022-06-25 16:48:35 +02:00
Roland Häder
f12cc9648e
Changes:
...
- added some type-hints
- changed some double-quotes to single
2022-06-25 16:48:35 +02:00
Roland Häder
adb4aea6ad
Changes:
...
- added some type-hints
- replaced most double-quotes (only Diaspora.php, later more) with single
- added some documentation
- normalized indenting in Diaspora.php (I hope I got all?)
2022-06-18 05:03:10 +02:00
Roland Häder
e484b6d6dc
Continued:
...
- added more type-hints
- added some documentation
- Contact::getAccountType() should only process string, not null
2022-06-17 17:18:31 +02:00
Roland Häder
33768ea1c6
Some fixes:
...
- $gsid's default value cannot sadly be 0, it now must be null to allow some
code work
- added some more type-hints
- documented a bit more
2022-06-17 17:18:31 +02:00
Roland Häder
7560dccc08
Added again more type-hints
2022-06-17 17:18:31 +02:00
Michael
b816ae4db5
Some more default avatars
2022-06-13 20:07:54 +00:00
Michael
70b9a8114d
Improve license comment
2022-06-13 10:30:21 +00:00
Michael
d9fb081db9
Using separate avatars for different peertube account types
2022-06-13 10:27:46 +00:00
Michael
c1a64b77c0
Improved license text
2022-06-13 10:03:34 +00:00
Michael
e0a0c57c44
Use platform specific default avatar pictures
2022-06-13 05:18:54 +00:00
Michael
540b3f892b
Issue 11557: Update all local contacts
2022-05-29 17:48:09 +00:00
Michael
0a43fe857c
Pass the "force" parameter to the avatar update
2022-05-27 05:36:07 +00:00
Michael
918c1eeb56
Check for phantom network
2022-05-25 11:46:58 +00:00
Michael
f5d69b3b6a
Ensure that the public contact exixts before adding a user contact
2022-05-25 11:43:29 +00:00
Michael
0b50dc363b
Caching of "noscrape"
2022-05-17 15:39:04 +00:00
Michael
73019284ce
Increase cache lifespan / clear cache upon changes
2022-05-17 12:32:25 +00:00
Michael
30b9af10ac
Fetch featured posts through a worker
2022-05-15 09:08:35 +00:00
Michael
3d7ecb4fde
Don't update the local avatar
2022-05-11 18:30:59 +00:00
Michael
47ee6fd009
Fix a warning because of an undefined array key
2022-05-11 16:01:37 +00:00
Michael
fae414fedd
Fix local avatar, improve speed for fetching cached photos
2022-05-10 18:18:24 +00:00
Michael
006b7a95f0
More avatar handling isolation
2022-05-09 06:57:47 +00:00
Michael
53d064c283
Avatar handling is moved to a separate class
2022-05-09 06:27:46 +00:00
Michael
e3692c0105
Replaced check with hardwired path
2022-05-09 04:26:00 +00:00
Michael
f220e26f00
Use new function to check for a local avatar cache file
2022-05-08 10:32:29 +00:00
Michael
805dc8e6bd
Fix config call
2022-05-08 09:34:30 +00:00
Michael
dd422a1e03
Fix contact field name
2022-05-08 08:57:41 +00:00
Michael
7b0187c4c5
Don't overwrite already replaced cache file paths
2022-05-08 08:53:18 +00:00
Michael
2d856f48b7
Use the default timeout
2022-05-08 05:51:18 +00:00
Michael
a31256412e
Cache contact avatars locally as files
2022-05-08 05:37:17 +00:00
Michael
19c1b31ab2
Only add valid values to the worker
2022-05-01 07:03:10 +00:00
Michael
d44641e58c
Fetch avatar by id
2022-04-29 07:30:13 +00:00
Michael
144c9f00f4
Fix: Show reshared posts on the contact page
2022-04-27 03:25:47 +00:00
Michael
171354181d
Use central function to fetch the global directory
2022-04-26 18:33:58 +00:00
Michael
d7df0825db
We now offer an endpoint for featured posts
2022-04-08 21:25:31 +00:00
Michael Vogel
b2b8b23ed6
Update src/Model/Contact.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-04-08 13:59:43 +02:00
Michael
69b7923df2
Use centralized function to fetch query results
2022-04-08 06:04:50 +00:00
Michael
6c8ea1d0d8
Updated messages.po / type added to query
2022-04-08 04:17:52 +00:00
Michael
75bc4eccb7
Display featured posts for contacts
2022-04-07 21:52:25 +00:00
Michael
ff70f74952
"accept" constants introduced and used
2022-03-28 10:33:06 +00:00
Hypolite Petovan
e6f745bcb1
Delete follow notification on unfollow
...
- Fix translation string typo
2022-03-14 07:58:39 -04:00
Hypolite Petovan
deafdcde95
Use public contact ID in Model\Post\UserNotification::insertNotification
...
- Add localRelationship dependency to Notification factory
- Remove dependencies from Factory\Notification->getMessageFromNotification method
2022-03-14 07:56:20 -04:00
Hypolite Petovan
cddead2343
Move follow revoke protocol to worker task
...
- Switch to public contact for revoke_follow hook
2022-02-24 09:35:55 -05:00
Hypolite Petovan
6a1f9a7fa3
Move unfollow protocol to worker task
...
- Add uid parameter to unfollow hook
- Rework and unify Contact::unfollow, Contact::removeSharer and Contact::terminateFriendship
- Add missing twitterUser property to Twitter\Friendships\Destroy module
2022-02-24 09:35:54 -05:00
Hypolite Petovan
52f5d924b7
Replace remaining instances of DBA::update('contact') with Contact::update()
...
- This was breaking the synchronisation between the contact and user-contact tables
2022-02-24 09:35:54 -05:00
Michael
e394143148
Private forums are now working via ActivityPub
2022-02-12 18:38:36 +00:00
Michael
9a764516d0
Use the "contact-type" instead of "forum" or "prv"
2022-02-09 06:52:16 +00:00
Michael
695d6ce461
Issue 10966: Ignore "only sharer" setting for forum accounts
2022-02-03 20:26:30 +00:00
Michael
4808713668
Don't cache local avatars
2022-02-01 20:22:40 +00:00
Michael
10bdaa0cfe
Always generate a random header if missing
2022-01-09 11:19:31 +00:00
Michael
df45a3b915
Remove unneeded code
2022-01-09 10:43:23 +00:00
Michael
bbda69a736
Don't store the default header in the contact table
2022-01-09 10:38:36 +00:00
Michael
618903fef7
Only update the contact when the header changed
2022-01-09 05:49:11 +00:00
Michael
cfd63f5682
Use randon pictures for networks that don't support banners
2022-01-09 05:24:35 +00:00
Michael
8147073c47
Added license information
2022-01-09 03:29:16 +00:00
Michael
59358077c7
First support for user headers
2022-01-08 22:43:11 +00:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael
ce174cad91
More often update Diaspora contacts
2021-12-30 22:40:52 +00:00
Michael
29be22ee6a
Display interaction data for Diaspora accounts
2021-12-30 22:11:52 +00:00
Hypolite Petovan
84e7f65d52
Move sending follow message to remote server to Protocol class
2021-11-21 18:59:36 -05:00
Hypolite Petovan
d011f747ff
Remove unused parameter $network in Model\User::getDefaultGroup
2021-11-21 18:59:36 -05:00
Michael
eb1b2256a0
Removed and replaced deprecated functionalities
2021-11-07 14:00:47 +00:00
Michael
87673fd0c5
Merge remote-tracking branch 'upstream/develop' into logging
2021-10-25 18:56:29 +00:00
Michael
8185c591d8
New option to activate/deactivate contact avatar cache
2021-10-23 17:18:30 +00:00
Michael
a497bd3a3d
Merge remote-tracking branch 'upstream/develop' into logging
2021-10-22 06:06:39 +00:00
Hypolite Petovan
82c2a30c59
Fix wrong array access to Entity object
...
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-949051839
2021-10-21 18:58:18 -04:00
Philipp
7d7d310cc4
Replace almost every Introduction places
2021-10-21 21:49:21 +02:00
Michael
f6faae5bb1
Replace deprecated log
calls
2021-10-20 18:53:52 +00:00
Hypolite Petovan
353cd66b26
Merge pull request #10900 from annando/notify
...
`enotify.php` is removed and its functions were transferred
2021-10-19 22:22:41 -04:00
Michael
2f1f6f6fb2
Replace "notification" call with new function, removing enotify.php
2021-10-19 19:45:36 +00:00
Michael
b152fde9d1
Don't degrade an existing relationship when following again
2021-10-19 02:05:04 +00:00
Hypolite Petovan
fc2175260f
Move Worker task RemoveContact to Contact\Remove
2021-10-16 19:22:24 -04:00
Hypolite Petovan
45fc6759b8
Remove unused method in Model\\Contact
2021-10-16 16:05:09 -04:00
Michael
8d7846142d
Hide blocked contacts when searching public contacts
2021-10-13 21:04:46 +00:00
Michael
2904f4ca0e
Olq query removed, checking for deleted as well
2021-10-13 05:11:36 +00:00
Michael
27b9da3df5
replace "p" with higher level database functions
2021-10-12 05:53:29 +00:00
Michael
13827edd2c
New photo field "photo-type" as preparation for banners
2021-10-11 14:21:10 +00:00
Hypolite Petovan
880c2148c2
Fix overly strict return value for revokeFollow methods
2021-10-09 02:08:04 -04:00
Hypolite Petovan
456ae169ab
Fix overly strict return value for terminateFriendship methods
2021-10-06 20:18:44 -04:00
Michael
ab17fbf6b2
Unneeded "ProxyUtils" renamed to "Proxy"
2021-10-05 20:18:19 +00:00
Michael
9eba41598d
Code review changes
2021-10-04 14:01:46 +00:00
Michael
126aa6f148
Fix tests
2021-10-04 06:26:41 +00:00
Michael
d30dc52101
Access contact avatars by guid
2021-10-04 06:13:52 +00:00
Michael Vogel
3d97149007
Merge pull request #10722 from MrPetovan/task/refactor-notifications
...
Move notify, notifications and introduction notifications to new paradigm
2021-10-03 14:13:28 +02:00
Hypolite Petovan
7cdd2d1336
Refactor User::getAvatarUrlForId into getAvatarUrl
...
- Use user/owner array as parameter instead of uid
- Rename $profile variables to $owner when it's the result of User::getOwnerDataByNick
- Replace Module\Photo::stripExtension with native pathinfo() calls
2021-10-02 19:06:25 -04:00
Hypolite Petovan
7a2d5f6a8e
Move notification to the new paradigm
2021-10-02 18:15:45 -04:00
Hypolite Petovan
ea6f7aba40
Fix method name typos in Model\Post\UserNotification
...
- Reformat file, improve type-hinting
2021-10-02 18:15:43 -04:00
Hypolite Petovan
b0d8136b00
Remove contact record instead of setting rel = 0 in Contact::revokeFollow
2021-10-02 17:30:03 -04:00
Hypolite Petovan
c4a4473cd0
Remove the obsolete parameter $two_way from terminateFriendship methods
...
- Follow revokation is now done independently
2021-10-02 16:14:22 -04:00
Hypolite Petovan
222333f64f
Remove contact drop feature
...
- Feature was confusing, sometimes ineffective and overall overlapping with unfollow/block
2021-10-02 16:04:28 -04:00
Michael
da3fbced38
Merge branch 'contact-media' of github.com:annando/friendica into contact-media
2021-10-02 18:35:47 +00:00
Michael
2408ac8227
Merge remote-tracking branch 'upstream/develop' into contact-media
2021-10-02 18:35:43 +00:00
Michael Vogel
a2f5190bdb
Update src/Model/Contact.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-10-02 20:31:30 +02:00
Hypolite Petovan
72fae04e97
Add revoke follow feature
...
- Add new follow revoke module
- Add new hooks: revoke_follow, support_follow, support_revoke_follow
- Add link in contact page action menu
2021-10-02 14:01:46 -04:00
Michael
c822cdaebd
Removing "blubb"
2021-10-02 17:47:11 +00:00
Michael
a44d200c21
Merge remote-tracking branch 'upstream/develop' into contact-media
2021-10-02 15:13:55 +00:00
Michael
c3554ac0f4
"Video" is replaced by a "Media" tab in contact and profile
2021-10-02 15:09:43 +00:00
Hypolite Petovan
797391e1d8
Rework contact termination to separate protocol-level and contact-level
...
- Mail and Feed contacts are now removed automatically on relationship termination
- Added logging and notice messages for different results
2021-10-02 08:31:59 -04:00
Michael
865006682a
Merge remote-tracking branch 'upstream/develop' into user-contact
2021-10-02 11:57:43 +00:00
Michael
96055cafff
Merge remote-tracking branch 'upstream/develop' into conversation-moved
2021-09-26 03:57:31 +00:00
Michael
a2532ad755
Merge remote-tracking branch 'upstream/develop' into user-contact
2021-09-26 03:07:59 +00:00
Hypolite Petovan
d8febbe45e
Add new hook to support unfollow contacts on non-native networks
2021-09-25 16:15:06 -04:00
Michael
0ad904c185
The conversation functionality moved to a class
2021-09-23 21:18:36 +00:00
Michael
3dddea96fa
Merge remote-tracking branch 'upstream/2021.09-rc' into user-contact
2021-09-18 20:27:24 +00:00
Hypolite Petovan
24ecf5954c
Merge pull request #10721 from annando/issue-10720-avatar
...
Issue 10720: Use different path scheme for user avatars
2021-09-18 09:30:08 -04:00
Philipp
fd22906d70
Add feedback
2021-09-18 12:51:10 +02:00
Philipp
462f76352e
Add feedback :-)
2021-09-18 12:51:09 +02:00
Philipp
644f312896
Fix various Notices
2021-09-18 12:51:06 +02:00
Michael
a91e3f5dbc
Issue 10720: Use different path scheme for user avatars
2021-09-17 18:36:20 +00:00
Michael
3eea4b1130
Use "rel" for "self" instead of using a separate field
2021-09-12 19:04:27 +00:00
Michael
f33a98578d
Capitalization
2021-09-10 23:59:33 +00:00
Michael
2486c8031b
update for user-contact is added
2021-09-10 20:22:24 +00:00
Michael
9c14eb0c6b
Use centralized function to update contact entries
2021-09-10 18:21:19 +00:00
Michael
a4b0ab90b1
Insert a user-contact
for every contact
2021-09-10 13:05:16 +00:00
Michael
2bae4dde1f
Avoid notices
2021-08-30 12:29:09 +00:00
Michael
9135ff5124
Set contact to failed when url changed
2021-08-29 20:25:21 +00:00
Michael
4495e83eca
Merge remote-tracking branch 'upstream/develop' into app-user2
2021-08-09 15:32:32 +00:00
Michael
b8fa75b2dd
Changed function name
2021-08-09 15:29:07 +00:00
Michael
bee04f86ee
Matrix addresses can be entered in the profile
2021-08-09 01:39:09 +00:00
Michael
28090bd793
Get rid of App->user completely
2021-08-08 19:30:21 +00:00
Michael
0fe5759d8a
Fixed avatar fetching for mail and feed
2021-07-24 10:32:55 +00:00
Michael
64026ed979
Simplify code
2021-07-19 12:07:02 +00:00
Michael
aa6313dee6
Improved detection for a local contact
2021-07-19 04:15:57 +00:00
Michael
596bb9fa7c
Fixed wrong parameter
2021-07-17 05:25:04 +00:00
Michael
89f7ee2cc5
Prevent endless loop when updating contact by probe
2021-07-17 04:57:21 +00:00
Michael
c1e681e007
Improved comment
2021-07-15 17:42:03 +00:00
Michael
3a5523820c
Legacy DFRN transport layer is removed
2021-07-15 13:28:32 +00:00
Michael
e151a2dc41
Fixes "Undefined index: nick"
2021-07-12 06:25:48 +00:00
Michael
d267ba999c
We now use the new account-user-view (and fixed the function name)
2021-07-11 09:39:34 +00:00
Michael
e0fdde3287
Fix the tests, hopefully
2021-07-09 17:13:54 +00:00
Michael
04580ad4fb
Don't update automatically to make tests happy
2021-07-09 16:20:22 +00:00
Michael
0735a22cdd
Fix notice "undefined index: uri"
2021-07-09 14:52:22 +00:00