add notifications to d* private messages
This commit is contained in:
parent
aca8c8a13a
commit
da21473c34
|
@ -1223,6 +1223,19 @@ function diaspora_conversation($importer,$xml,$msg) {
|
|||
dbesc(datetime_convert()),
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue