]> git.mxchange.org Git - friendica.git/commitdiff
add notifications to d* private messages
authorfriendica <info@friendica.com>
Tue, 27 Dec 2011 23:49:47 +0000 (15:49 -0800)
committerfriendica <info@friendica.com>
Tue, 27 Dec 2011 23:49:47 +0000 (15:49 -0800)
include/diaspora.php

index d1e975a89f9987dc12982a5eba7c0f262db7bebf..2d139c77c32750e8c6e789af7222ea7ad0f03572 100644 (file)
@@ -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;