]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for ticket #2852: skip sending favorite notification emails if the favoriter...
authorBrion Vibber <brion@pobox.com>
Wed, 3 Nov 2010 22:17:46 +0000 (15:17 -0700)
committerBrion Vibber <brion@pobox.com>
Wed, 3 Nov 2010 22:17:46 +0000 (15:17 -0700)
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();