]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/lib/favcommand.php
making more sense in mail_notify_fav
[quix0rs-gnu-social.git] / plugins / Favorite / lib / favcommand.php
index 41fd0b0b883e2533b5652399ab9c5d584e62bb37..65ccdaae4b1b8b16169df4d587dbbaf2912e3c1f 100644 (file)
@@ -40,7 +40,9 @@ class FavCommand extends Command
  
         if ($other && $other->id != $this->user->id) { 
             if ($other->email && $other->emailnotifyfav) { 
-                mail_notify_fave($other, $this->user, $notice); 
+                require_once INSTALLDIR.'/lib/mail.php';
+
+                mail_notify_fave($other, $this->user->getProfile(), $notice);
             } 
         }