Don't display additional content when the output mode is "raw"

This commit is contained in:
Michael 2023-11-28 15:21:20 +00:00
parent bb97539a28
commit 405db86750
4 changed files with 26 additions and 23 deletions

View file

@ -97,7 +97,7 @@ class Community extends Timeline
$o .= Renderer::replaceMacros($tpl, ['$reload_uri' => $this->args->getQueryString()]);
}
if (empty($request['mode']) || ($request['mode'] != 'raw')) {
if (!$this->raw) {
$tabs = $this->getTabArray($this->community->getTimelines($this->session->isAuthenticated()), 'community');
$tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
$o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]);