]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
let author see own spam
[quix0rs-gnu-social.git] / classes / Notice.php
index 97193dbb3439a54af8613029c8b6f6d30f07a53f..5b1bdcbdad98ec155c70e332015376efc52ac076 100644 (file)
@@ -2474,7 +2474,7 @@ class Notice extends Managed_DataObject
             $author = $this->getProfile();
 
             if ($author->hasRole(Profile_role::SILENCED)) {
-                if (empty($profile) || !$profile->hasRight(Right::REVIEWSPAM)) {
+                if (empty($profile) || (($profile->id !== $author->id) && (!$profile->hasRight(Right::REVIEWSPAM)))) {
                     return true;
                 }
             }