]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/TrendingTags.php
Merge pull request #10086 from nupplaphil/feat/install_testrewrite
[friendica.git] / src / Content / Widget / TrendingTags.php
index 053cba09d3d58f9fc1180bb19bbc1998d05d6415..9c24d1549cf8871abd7034f0e676705c420a222f 100644 (file)
@@ -24,7 +24,6 @@ namespace Friendica\Content\Widget;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 use Friendica\Model\Tag;
-use Friendica\Model\Term;
 
 /**
  * Trending tags aside widget for the community pages, handles both local and global scopes
@@ -42,9 +41,9 @@ class TrendingTags
        public static function getHTML($content = 'global', int $period = 24)
        {
                if ($content == 'local') {
-                       $tags = Term::getLocalTrendingHashtags($period, 20);
+                       $tags = Tag::getLocalTrendingHashtags($period, 20);
                } else {
-                       $tags = Term::getGlobalTrendingHashtags($period, 20);
+                       $tags = Tag::getGlobalTrendingHashtags($period, 20);
                }
 
                $tpl = Renderer::getMarkupTemplate('widget/trending_tags.tpl');