]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/actions/apifavoritecreate.php
making more sense in mail_notify_fav
[quix0rs-gnu-social.git] / plugins / Favorite / actions / apifavoritecreate.php
index 00c1e21bbf7b169f81459edc8de264935017c7c9..4172692441413493b02b57602fed7a18cb910e57 100644 (file)
@@ -164,7 +164,9 @@ class ApiFavoriteCreateAction 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