X-Git-Url: https://reisub.nsupdate.info/git/?a=blobdiff_plain;f=src%2FContent%2FWidget%2FTrendingTags.php;h=2bb6e7703a2e36f539a00223030cb86393b06554;hb=c82a1ed467850326068a3f08066720254f3b0e89;hp=b20f807936e1c3f24c7b7d3a242cb8420ce29fd9;hpb=bae1f6342436f324e8a91031fe799d20bf3ed39d;p=friendica.git%2F.git diff --git a/src/Content/Widget/TrendingTags.php b/src/Content/Widget/TrendingTags.php index b20f807936..2bb6e7703a 100644 --- a/src/Content/Widget/TrendingTags.php +++ b/src/Content/Widget/TrendingTags.php @@ -21,6 +21,7 @@ namespace Friendica\Content\Widget; +use Friendica\Content\Conversation\Entity\Community; use Friendica\Core\Renderer; use Friendica\DI; use Friendica\Model\Tag; @@ -39,9 +40,9 @@ class TrendingTags * @return string Formatted HTML code * @throws \Exception */ - public static function getHTML(string $content = 'global', int $period = 24): string + public static function getHTML(string $content = Community::GLOBAL, int $period = 24): string { - if ($content == 'local') { + if ($content == Community::LOCAL) { $tags = Tag::getLocalTrendingHashtags($period, 20); } else { $tags = Tag::getGlobalTrendingHashtags($period, 20);