]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Run block checks on remote OStatus replies
[quix0rs-gnu-social.git] / 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();