diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-09 10:46:18 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-09 10:46:18 -0700 |
commit | 80bd77ced34ff87f5da2739e8ee95d627741d3bf (patch) | |
tree | c5f7204dbea2b55c717de750107b1ba66d09d3a1 /classes/Notice.php | |
parent | 756dd1551577606ae83eb2a0baf09ed4917f8c9e (diff) |
Run block checks on remote OStatus replies
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index be3e9ca2a..b416e2ff2 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -964,11 +964,19 @@ class Notice extends Memcached_DataObject */ function saveKnownReplies($uris) { + if (empty($uris)) { + return; + } + $sender = Profile::staticGet($this->profile_id); + foreach ($uris as $uri) { $user = User::staticGet('uri', $uri); if (!empty($user)) { + if ($user->hasBlocked($sender)) { + continue; + } $reply = new Reply(); |