From: Brion Vibber Date: Fri, 9 Apr 2010 17:46:18 +0000 (-0700) Subject: Run block checks on remote OStatus replies X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cb0dab27036b237f9f325dc14c417e23fd475f7;p=quix0rs-gnu-social.git Run block checks on remote OStatus replies --- diff --git a/classes/Notice.php b/classes/Notice.php index be3e9ca2a6..b416e2ff28 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();