]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mail.php
Links to photo pages in gallery
[quix0rs-gnu-social.git] / lib / mail.php
index 30d743848ff98488c69d6d7546e7a3bcfc67d102..dd6a1a366e80ac75126a2040aa20774219151b54 100644 (file)
@@ -593,6 +593,10 @@ function mail_notify_fave($other, $user, $notice)
     }
 
     $profile = $user->getProfile();
+    if ($other->hasBlocked($profile)) {
+        // If the author has blocked us, don't spam them with a notification.
+        return;
+    }
 
     $bestname = $profile->getBestName();