namespace Friendica\Content\Widget;
+use Friendica\Content\Conversation\Entity\Community;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\Tag;
* @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);