Skip to content

Commit

Permalink
Fix blocked users' posts still showing up if an unblocked user repeat…
Browse files Browse the repository at this point in the history
…s it
  • Loading branch information
RedEnchilada committed Oct 8, 2014
1 parent e60e880 commit 057a4e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classes/Notice.php
Expand Up @@ -2410,6 +2410,15 @@ protected function _inScope($profile)
if ($profile && $profile->hasBlocked($this->getProfile())) {
return false;
}


if (!empty($this->repeat_of)) {
$original = Notice::staticGet('id', $this->repeat_of);
if (!empty($original)) { // could have been deleted
if ($profile && $profile->hasBlocked($original->getProfile()))
return false;
}
}

// If there's no scope, anyone (even anon) is in scope.

Expand Down

0 comments on commit 057a4e8

Please sign in to comment.