diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index fd593c35..b4eec2d2 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -59,12 +59,17 @@ -
- {if $post->canBeDeletedBy($thisUser) && !($forceNoDeleteLink ?? false)} +
+ {if is_null($thisUser)} + {var $forceNoDeleteLink = true} + {var $forceNoPinLink = true} + {/if} + + {if !($forceNoDeleteLink ?? false) && $post->canBeDeletedBy($thisUser)} {_delete}  |  {/if} - {if $post->canBePinnedBy($thisUser) && !($forceNoPinLink ?? false)} + {if !($forceNoPinLink ?? false) && $post->canBePinnedBy($thisUser)} {if $post->isPinned()} {_unpin} {else} @@ -84,7 +89,7 @@  |  {/if} - + {_share} {if $post->getRepostCount() > 0} ({$post->getRepostCount()}) @@ -92,11 +97,18 @@