diff options
author | friendica <info@friendica.com> | 2011-12-27 15:49:47 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-27 15:49:47 -0800 |
commit | da21473c3434808f91953ba14f97c647b8dc8895 (patch) | |
tree | 6c941ee92b655dd5f99260c1445afde30a867503 /include/diaspora.php | |
parent | aca8c8a13a8c3a850cad26efbc1e262b99c7b8a3 (diff) | |
download | volse-hubzilla-da21473c3434808f91953ba14f97c647b8dc8895.tar.gz volse-hubzilla-da21473c3434808f91953ba14f97c647b8dc8895.tar.bz2 volse-hubzilla-da21473c3434808f91953ba14f97c647b8dc8895.zip |
add notifications to d* private messages
Diffstat (limited to 'include/diaspora.php')
-rw-r--r-- | include/diaspora.php | 13 |
1 files changed, 13 insertions, 0 deletions
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; |