<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
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
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');