notifications refactor

This commit is contained in:
friendica 2011-12-08 01:28:27 -08:00
parent 961e34f67f
commit 3da3cd686c
5 changed files with 111 additions and 5 deletions

View 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) {