]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/TrendingTags.php
Merge pull request #11265 from k-alin/6606-k-alin-mysql-unix-socket
[friendica.git] / src / Content / Widget / TrendingTags.php
index 053cba09d3d58f9fc1180bb19bbc1998d05d6415..e9c44b49df248e761de6e45f1322e5024bb8a72f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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');