]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/scopingnoticestream.php
Don't trust local HTML either
[quix0rs-gnu-social.git] / lib / scopingnoticestream.php
index 30a7b708d202eb1a62539fc04b36ed4552e553b4..c1651d5a30b1c347c33803091ddf441d5b65f1b3 100644 (file)
@@ -80,5 +80,18 @@ class ScopingNoticeStream extends FilteringNoticeStream
             
         Notice::fillGroups($notices);
         Notice::fillReplies($notices);
+
+        if (common_config('notice', 'hidespam')) {
+
+            $profiles = Notice::getProfiles($notices);
+
+            foreach ($profiles as $profile) {
+                $pids[] = $profile->id;
+            }
+            
+            Profile_role::pivotGet('profile_id',
+                                   $pids,
+                                   array('role' => Profile_role::SILENCED));
+        }
     }
 }