Some more "term" to "tag" conversion

This commit is contained in:
Michael 2020-05-01 10:57:32 +00:00
parent 2b8dabcd95
commit ac2957c4dd
6 changed files with 70 additions and 101 deletions

View 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');