Merge pull request #4433 from annando/direct-block

Suppress content from hidden or blocked contacts
This commit is contained in:
Hypolite Petovan
2018-02-10 07:49:34 -05:00
committed by GitHub
5 changed files with 8 additions and 7 deletions

View File

@@ -896,11 +896,6 @@ class Item extends BaseObject
return;
}
// Is the public contact configured as hidden?
if (Contact::isHidden($item["owner-id"]) || Contact::isHidden($item["author-id"])) {
return;
}
// Only do these checks if the post isn't a wall post
if (!$item["wall"]) {
// Check, if hide-friends is activated - then don't do a shadow entry