The function moved from the user to the contact class

This commit is contained in:
Michael 2019-02-10 17:19:10 +00:00
parent 758eabd2f6
commit 7939cacc44
3 changed files with 19 additions and 16 deletions

View file

@ -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;
}