diff options
author | friendica <info@friendica.com> | 2011-12-08 01:28:27 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-08 01:28:27 -0800 |
commit | 3da3cd686cc7fa51e2c98e98dbf8bd3a65880bdd (patch) | |
tree | e18be4db0a3c0d980c4634f9f8821671ac598a93 /include/items.php | |
parent | 961e34f67f477d18619d7d9a4aa8856a879b679a (diff) | |
download | volse-hubzilla-3da3cd686cc7fa51e2c98e98dbf8bd3a65880bdd.tar.gz volse-hubzilla-3da3cd686cc7fa51e2c98e98dbf8bd3a65880bdd.tar.bz2 volse-hubzilla-3da3cd686cc7fa51e2c98e98dbf8bd3a65880bdd.zip |
notifications refactor
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 15 |
1 files changed, 15 insertions, 0 deletions
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) { |