disable reaction bar for posts that don't support it

This commit is contained in:
ari melody 2024-07-01 00:15:21 +01:00
parent dc9b456409
commit 6953b49563
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 6 additions and 2 deletions

View file

@ -65,7 +65,9 @@
<PostHeader post={post} /> <PostHeader post={post} />
<Body post={post} /> <Body post={post} />
<footer class="post-footer"> <footer class="post-footer">
{#if post.reactions}
<ReactionBar post={post} /> <ReactionBar post={post} />
{/if}
<ActionBar post={post} /> <ActionBar post={post} />
</footer> </footer>
</article> </article>

View file

@ -43,7 +43,9 @@
<Body post={post} /> <Body post={post} />
<footer class="post-footer"> <footer class="post-footer">
{#if post.reactions}
<ReactionBar post={post} /> <ReactionBar post={post} />
{/if}
<ActionBar post={post} /> <ActionBar post={post} />
</footer> </footer>
</div> </div>