add notifications to d* private messages

pull/21/merge
friendica 2011-12-27 15:49:47 -08:00
rodzic aca8c8a13a
commit da21473c34
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -1223,6 +1223,19 @@ function diaspora_conversation($importer,$xml,$msg) {
dbesc(datetime_convert()), dbesc(datetime_convert()),
intval($conversation['id']) intval($conversation['id'])
); );
require_once('include/enotify.php');
notification(array(
'type' => NOTIFY_MAIL,
'notify_flags' => $importer['notify-flags'],
'language' => $importer['language'],
'to_name' => $importer['username'],
'to_email' => $importer['email'],
'item' => array('subject' => $subject, 'body' => $body),
'source_name' => $person['name'],
'source_link' => $person['url'],
'source_photo' => $person['thumb'],
));
} }
return; return;