This commit is contained in:
friendica 2013-02-26 17:33:47 -08:00
commit 0433263866
22 changed files with 10955 additions and 10893 deletions

View file

@ -415,6 +415,9 @@ intval($params['uid']), LOGGER_DEBUG);
call_hooks('enotify_mail', $datarray);
// check whether sending post content in email notifications is allowed
$content_allowed = !get_config('system','enotify_no_content');
// load the template for private message notifications
$tpl = get_markup_template('email_notify_html.tpl');
$email_html_body = replace_macros($tpl,array(
@ -432,7 +435,8 @@ intval($params['uid']), LOGGER_DEBUG);
'$thanks' => $datarray['thanks'],
'$site_admin' => $datarray['site_admin'],
'$title' => $datarray['title'],
'$htmlversion' => $datarray['htmlversion'],
'$htmlversion' => $datarray['htmlversion'],
'$content_allowed' => $content_allowed,
));
// load the template for private message notifications
@ -453,6 +457,7 @@ intval($params['uid']), LOGGER_DEBUG);
'$site_admin' => $datarray['site_admin'],
'$title' => $datarray['title'],
'$textversion' => $datarray['textversion'],
'$content_allowed' => $content_allowed,
));
// logger('text: ' . $email_text_body);

View file

@ -426,6 +426,7 @@ function onepoll_run(&$argv, &$argc){
continue;
}
$datarray['body'] = escape_tags($r['body']);
$datarray['body'] = limit_body_size($datarray['body']);
logger("Mail: Importing ".$msg_uid." for ".$mailconf[0]['user']);

View file

@ -75,6 +75,9 @@ function complete_conversation($itemid, $conversation_url, $only_add_conversatio
$conv_as = json_decode($conv_as);
$first_id = "";
if (!is_array($conv_as->items))
return;
$items = array_reverse($conv_as->items);
foreach ($items as $single_conv) {