]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/actions/atompubfavoritefeed.php
making more sense in mail_notify_fav
[quix0rs-gnu-social.git] / plugins / Favorite / actions / atompubfavoritefeed.php
index cbbe91ae554a54e83cdbe013562deebd0e7d23cf..4ff76e183d1622b20a47625d76d1013c35411284 100644 (file)
@@ -363,7 +363,9 @@ class AtompubfavoritefeedAction extends ApiAuthAction
         $other = User::getKV('id', $notice->profile_id);
         if ($other && $other->id != $user->id) {
             if ($other->email && $other->emailnotifyfav) {
-                mail_notify_fave($other, $user, $notice);
+                require_once INSTALLDIR.'/lib/mail.php';
+
+                mail_notify_fave($other, $user->getProfile(), $notice);
             }
             // XXX: notify by IM
             // XXX: notify by SMS