From 3da3cd686cc7fa51e2c98e98dbf8bd3a65880bdd Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 8 Dec 2011 01:28:27 -0800 Subject: notifications refactor --- include/items.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 50c5e56c1..278a9242e 100644 --- a/include/items.php +++ b/include/items.php @@ -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) { -- cgit v1.2.3