Fix microblog

This commit is contained in:
Alma Armas 2021-01-27 17:40:37 +00:00
parent 16f1b22ecb
commit 1e5f3f395b
3 changed files with 206 additions and 206 deletions

View file

@ -1,7 +1,7 @@
{ifset $thisUser} {var microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
{if $thisUser->hasMicroblogEnabled()}
{include "post/microblogpost.xml", post => $post} {if $microblogEnabled}
{else} {include "post/microblogpost.xml", post => $post}
{include "post/oldpost.xml", post => $post} {else}
{/if} {include "post/oldpost.xml", post => $post}
{/ifset} {/if}