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
commit 8b557c3157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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