From 19adb9a1a09086f5a58e42dc885cb84821ddaf3f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 6 Aug 2019 20:52:54 -0400 Subject: [PATCH 1/2] Fix trending tags variable name mistakes in Model\Term --- src/Model/Term.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Term.php b/src/Model/Term.php index 4e2b571ce..1de93fb05 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -82,7 +82,7 @@ class Term $limit ); - if (DBA::isResult($tags)) { + if (DBA::isResult($tagsStmt)) { $tags = DBA::toArray($tagsStmt); Cache::set('global_trending_tags', $tags, Cache::HOUR); } @@ -127,7 +127,7 @@ class Term $limit ); - if (DBA::isResult($tags)) { + if (DBA::isResult($tagsStmt)) { $tags = DBA::toArray($tagsStmt); Cache::set('local_trending_tags', $tags, Cache::HOUR); } From 0a9ed707b5996ed56e5ee091ce48aad5b2372d93 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 6 Aug 2019 20:55:40 -0400 Subject: [PATCH 2/2] Add hashtag mark to trending tags display --- view/templates/widget/trending_tags.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/templates/widget/trending_tags.tpl b/view/templates/widget/trending_tags.tpl index 554b4984e..a2788af65 100644 --- a/view/templates/widget/trending_tags.tpl +++ b/view/templates/widget/trending_tags.tpl @@ -2,7 +2,7 @@

{{$title}}

{{if $tags|count > 10}} @@ -10,7 +10,7 @@ {{$more}}