forked from GNUsocial/gnu-social
try some fiddling to get message notification going out
darcs-hash:20080923072150-5ed1f-e885ab238ccf5bb4b21486b37cf8449812cae7ee.gz
This commit is contained in:
parent
cf34bd5da5
commit
8957f9cf89
@ -235,14 +235,14 @@ function mail_confirm_sms($code, $nickname, $address) {
|
|||||||
function mail_notify_message($message, $from=NULL, $to=NULL) {
|
function mail_notify_message($message, $from=NULL, $to=NULL) {
|
||||||
|
|
||||||
if (is_null($from)) {
|
if (is_null($from)) {
|
||||||
$from = User::staticGet($message->from_profile);
|
$from = User::staticGet('id', $message->from_profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($to)) {
|
if (is_null($to)) {
|
||||||
$to = User::staticGet($message->to_profile);
|
$to = User::staticGet('id', $message->to_profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$to->email || !$to->emailnotifymsg) {
|
if (is_null($to->email) || !$to->emailnotifymsg) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user