feat: add admin and moderator badges to posts and comments

This commit is contained in:
Xylight committed 2024-03-09 12:00:34 -08:00
1 parent 3f5c49d4c4
commit 3c74cfe4e6
7 files changed
+85 -36

No files matched your search

@@ -168,14 +168,19 @@
community={post.post_view.community}
user={post.post_view.creator}
bind:subscribed={post.community_view.subscribed}
deleted={post.post_view.post.deleted}
removed={post.post_view.post.removed}
locked={post.post_view.post.locked}
featured={post.post_view.post.featured_community ||
post.post_view.post.featured_local}
nsfw={post.post_view.post.nsfw}
badges={{
deleted: post.post_view.post.deleted,
removed: post.post_view.post.removed,
locked: post.post_view.post.locked,
featured:
post.post_view.post.featured_community ||
post.post_view.post.featured_local,
nsfw: post.post_view.post.nsfw,
saved: post.post_view.saved,
admin: post.post_view.creator_is_admin,
moderator: post.post_view.creator_is_moderator,
}}
published={publishedToDate(post.post_view.post.published)}
saved={post.post_view.saved}
/>
</div>
<Button on:click={() => history.back()} size="square-md">