]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mail.php
Email notify-on-fave moved to Profile_prefs (run upgrade.php)
[quix0rs-gnu-social.git] / lib / mail.php
index 182c95ea48dac93d4d2f566ba18cf75c3035f1be..15b2351b4356d256b3550f310d069e6882fad887 100644 (file)
@@ -683,6 +683,10 @@ function mail_notify_fave(User $rcpt, Profile $sender, Notice $notice)
         return;
     }
 
+    if (!$rcpt->getPref('notify', 'email_fave', 1)) {
+        return;
+    }
+
     $bestname = $profile->getBestName();
 
     common_switch_locale($rcpt->language);