]> git.mxchange.org Git - friendica.git/blobdiff - include/notifier.php
improvied group highlighting, move new group link down
[friendica.git] / include / notifier.php
index d9f9038533c9b1638e4a31d6edcaec886ff71a6b..9c194d962cfbbc5e419d94a354a7f391612244c0 100644 (file)
@@ -20,6 +20,9 @@ function notifier_run($argv, $argc){
        require_once('include/items.php');
        require_once('include/bbcode.php');
 
+       load_config('config');
+       load_config('system');
+
        load_hooks();
 
        if($argc < 3)
@@ -235,6 +238,8 @@ function notifier_run($argv, $argc){
        if($cmd === 'mail') {
                $notify_hub = false;  // mail is  not public
 
+               $body = fix_private_photos($item['body'],$owner['uid']);
+
                $atom .= replace_macros($mail_template, array(
                        '$name'         => xmlify($owner['name']),
                        '$profile_page' => xmlify($owner['url']),
@@ -242,7 +247,7 @@ function notifier_run($argv, $argc){
                        '$item_id'      => xmlify($item['uri']),
                        '$subject'      => xmlify($item['title']),
                        '$created'      => xmlify(datetime_convert('UTC', 'UTC', $item['created'] . '+00:00' , ATOM_TIME)),
-                       '$content'      => xmlify($item['body']),
+                       '$content'      => xmlify($body),
                        '$parent_id'    => xmlify($item['parent-uri'])
                ));
        }