$o .= $pager->renderMinimal(count($items));
+ DI::page()['aside'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/community_accounts.tpl'), [
+ '$title' => DI::l10n()->t('Accounts'),
+ '$content' => self::$content,
+ '$accounttype' => $parameters['accounttype'],
+ '$all' => DI::l10n()->t('All Accounts'),
+ '$person' => DI::l10n()->t('Personal Accounts'),
+ '$organisation' => DI::l10n()->t('Organisation Accounts'),
+ '$news' => DI::l10n()->t('News Accounts'),
+ '$community' => DI::l10n()->t('Communities'),
+ ]);
+
if (Feature::isEnabled(local_user(), 'trending_tags')) {
DI::page()['aside'] .= TrendingTags::getHTML(self::$content);
}
return [];
}
+ if (local_user() && DI::config()->get('system', 'community_no_followers')) {
+ $condition[0] .= " AND NOT EXISTS (SELECT `uri-id` FROM `thread` AS t1 WHERE `t1`.`uri-id` = `thread`.`uri-id` AND `t1`.`uid` = ?)";
+ $condition[] = local_user();
+ }
+
if (isset($max_id)) {
$condition[0] .= " AND `commented` < ?";
$condition[] = $max_id;