Skip to content

Commit

Permalink
Fix show_tags_max
Browse files Browse the repository at this point in the history
fix FreshRSS#5975
Regression from FreshRSS#5830
  • Loading branch information
Alkarex committed Dec 26, 2023
1 parent 941b370 commit 7cab624
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/index/normal.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $display_others = true;
$hidePosts = !FreshRSS_Context::userConf()->display_posts;
$lazyload = FreshRSS_Context::userConf()->lazyload;
$content_width = FreshRSS_Context::userConf()->content_width;
$MAX_TAGS_DISPLAYED = FreshRSS_Context::userConf()->show_tags_max;
$MAX_TAGS_DISPLAYED = (int)FreshRSS_Context::userConf()->show_tags_max;
$useKeepUnreadImportant = !FreshRSS_Context::isImportant() && !FreshRSS_Context::isFeed();

$today = @strtotime('today');
Expand Down
2 changes: 1 addition & 1 deletion app/views/index/reader.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ call_user_func($this->callbackBeforeEntries, $this);

$lazyload = FreshRSS_Context::userConf()->lazyload;
$content_width = FreshRSS_Context::userConf()->content_width;
$MAX_TAGS_DISPLAYED = FreshRSS_Context::userConf()->show_tags_max;
$MAX_TAGS_DISPLAYED = (int)FreshRSS_Context::userConf()->show_tags_max;
?>
<main id="stream" class="reader">
<h1 class="title_hidden"><?= _t('conf.reading.view.reader') ?></h1>
Expand Down
2 changes: 1 addition & 1 deletion config-user.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'display_posts' => false,
'display_categories' => 'active', //{ active, remember, all, none }
'show_tags' => '0',
'show_tags_max' => '7',
'show_tags_max' => 7,
'show_author_date' => 'h',
'show_feed_name' => 'a',
'hide_read_feeds' => true,
Expand Down

0 comments on commit 7cab624

Please sign in to comment.