{#if profile.current?.user && profile.current?.jwt && profile.current.user.local_user_view.person.id == post.creator.id} (editing = true)} icon={PencilSquare}> {$t('post.actions.more.edit')} {/if} {#if profile.current?.jwt} { if (profile.current?.jwt) post.read = await markAsRead(post.post, !post.read) }} icon={post.read ? EyeSlash : Eye} > {post.read ? $t('post.actions.more.markUnread') : $t('post.actions.more.markRead')} {/if} {#if profile.current?.jwt} {$t('post.actions.more.crosspost')} {#if profile.current.user && post.creator.id == profile.current.user.local_user_view.person.id} { if (profile.current?.jwt) post.post.deleted = await deleteItem(post, !post.post.deleted) }} color="danger-subtle" icon={Trash} > {post.post.deleted ? $t('post.actions.more.restore') : $t('post.actions.more.delete')} {/if} {#if profile.current.user?.local_user_view.person.id != post.creator.id} {#if !(client() instanceof PiefedClient)} { if (!profile.current?.jwt) return const hidden = await hidePost( post.post.id, !post.hidden, profile.current?.jwt, ) post.hidden = hidden if (hidden) onhide?.(hidden) }} color="danger-subtle" icon={XMark} > {post.hidden ? $t('post.actions.more.unhide') : $t('post.actions.more.hide')} {/if} report(post)} color="danger-subtle" icon={Flag}> {$t('moderation.report')} {/if} {/if}