change thread_maxlevel default

This commit is contained in:
zotlabs 2019-10-12 13:09:18 -07:00
parent c8ed767a85
commit c0e25dc9b4
3 changed files with 3 additions and 3 deletions

View file

@ -495,7 +495,7 @@ class ThreadItem {
'wait' => t('Please wait'),
'submid' => str_replace(['+','='], ['',''], base64_encode($item['mid'])),
'thread_level' => $thread_level,
'thread_max' => intval(get_config('system','thread_maxlevel',2)) + 1
'thread_max' => intval(get_config('system','thread_maxlevel',10)) + 1
);
$arr = array('item' => $item, 'output' => $tmp_item);

View file

@ -504,7 +504,7 @@ function bb_ShareAttributes($match) {
$headline = '<div class="shared_container"> <div class="shared_header">';
if ($avatar != "")
$headline .= '<a href="' . (($auth) ? zid($profile) : $profile) . '" ><img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" /></a>';
$headline .= '<a href="' . (($auth) ? zid($profile) : $profile) . '" ><img src="' . $avatar . '" alt="' . htmlspecialchars($author,ENT_COMPAT,'UTF-8',false) . '" height="32" width="32" /></a>';
if(strpos($link,'/cards/'))
$type = t('card');

View file

@ -1479,7 +1479,7 @@ function get_item_children($arr, $parent) {
}
$thread_allow = get_config('system','thread_allow',true);
$thread_max = intval(get_config('system','thread_maxlevel',2));
$thread_max = intval(get_config('system','thread_maxlevel',10));
foreach ($arr as $item) {
if (intval($item['id']) !== intval($item['parent'])) {