1
0
Fork 0

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
This commit is contained in:
Hypolite Petovan 2021-10-16 21:24:34 -04:00
commit 6a1f9a7fa3
11 changed files with 159 additions and 78 deletions

View file

@ -673,7 +673,7 @@ class Notifier
}
while($contact = DBA::fetch($contacts_stmt)) {
Protocol::terminateFriendship($owner, $contact, true);
Contact::terminateFriendship($contact);
}
DBA::close($contacts_stmt);