forked from GNUsocial/gnu-social
		
	making more sense in mail_notify_fav
We should probably get rid of this function, at least storing everything in lib/mail.php - but until then, at least let's make it more understandable.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user