mirror of
https://github.com/friendica/friendica
synced 2024-11-13 00:22:59 +00:00
add notifications to d* private messages
This commit is contained in:
parent
aca8c8a13a
commit
da21473c34
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue