Check for existence of a public contact id before deleting related notifications in Model\Contact
- Address part of https://github.com/friendica/friendica/issues/11993#issuecomment-1338134893
This commit is contained in:
parent
e78471c847
commit
a71fb8d7f3
1 changed files with 3 additions and 2 deletions
|
@ -3209,9 +3209,10 @@ class Contact
|
|||
self::clearFollowerFollowingEndpointCache($contact['uid']);
|
||||
|
||||
$cdata = self::getPublicAndUserContactID($contact['id'], $contact['uid']);
|
||||
|
||||
if (!empty($cdata['public'])) {
|
||||
DI::notification()->deleteForUserByVerb($contact['uid'], Activity::FOLLOW, ['actor-id' => $cdata['public']]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the local relationship when a local user unfollow a contact.
|
||||
|
|
Loading…
Reference in a new issue