]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Run block checks on remote OStatus replies
authorBrion Vibber <brion@pobox.com>
Fri, 9 Apr 2010 17:46:18 +0000 (10:46 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 9 Apr 2010 17:48:18 +0000 (10:48 -0700)
classes/Notice.php

index be3e9ca2a6721d69b38e960dbc406b44db97fa5d..b416e2ff28d28bca4b574b0c5cd70d5068f1eb2b 100644 (file)
@@ -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();