mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
The function moved from the user to the contact class
This commit is contained in:
parent
758eabd2f6
commit
7939cacc44
3 changed files with 19 additions and 16 deletions
|
@ -1462,8 +1462,8 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
if ($item['verb'] == ACTIVITY_FOLLOW) {
|
||||
if (!$item['origin'] && ($item['author-id'] == User::getPublicContactById($uid))) {
|
||||
// Our own follow request can be relayed to us. We don't store them to avoid notification chaos.
|
||||
if (!$item['origin'] && ($item['author-id'] == Contact::getPublicIdByUserId($uid))) {
|
||||
// Our own follow request can be relayed to us. We don't store it to avoid notification chaos.
|
||||
Logger::log("Follow: Don't store not origin follow request from us for " . $item['parent-uri'], Logger::DEBUG);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue