]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
notifications refactor
[friendica.git] / include / items.php
index 50c5e56c129e9dcacd366ff97298ceca21905865..278a9242e430e97d5be3e063b31f3cc5e36a22f8 100644 (file)
@@ -1824,6 +1824,21 @@ function local_delivery($importer,$data) {
 
                // send email notification if requested.
 
+               $notif_params = array(
+                       'type' => NOTIFY_MAIL,
+                       'notify_flags' => $importer['notify_flags'],
+                       'language' => $importer['language'],
+                       'to_name' => $importer['username'],
+                       'to_email' => $importer['email'],
+                       'title' => $msg['title'],
+                       'body' => $msg['body'],
+                       'source_name' => $msg['from-name'],
+                       'source_link' => $importer['url'],
+                       'source_photo' => $importer['thumb'],
+               );
+                       
+               //notification($notif_params);
+
                require_once('bbcode.php');
                if($importer['notify-flags'] & NOTIFY_MAIL) {