From da21473c3434808f91953ba14f97c647b8dc8895 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 27 Dec 2011 15:49:47 -0800 Subject: add notifications to d* private messages --- include/diaspora.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/diaspora.php b/include/diaspora.php index d1e975a89..2d139c77c 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -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; -- cgit v1.2.3