{#if fediseerData} {/if} {#if editing}

Editing post

{#await import('./PostForm.svelte')}
{:then { default: PostForm }} { editing = false post = e.detail dispatcher('edit', e.detail) }} > {''} {/await}
{/if} {#if translating} {#await import('$lib/components/translate/Translation.svelte') then { default: Translation }} {/await} {/if} {#if mediaBias && post.post.url} {#await import('$lib/components/mbfc/MBFCModal.svelte') then { default: MbfcModal }} {/await} {/if}
{#if $userSettings.debugInfo} {#if debug} {#await import('$lib/components/util/debug/DebugObject.svelte') then { default: DebugObject }} {/await} {/if} {/if} {#if $profile?.user && (amMod($profile.user, post.community) || isAdmin($profile.user))} {/if} {#if $profile?.jwt} {/if} {$t('post.actions.more.creator')} {post.creator.name} {post.community.title} { e.stopImmediatePropagation() fediseerLoading = true const data = await fediseer.getInstanceInfo( new URL(post.community.actor_id).hostname ) fediseerData = data fediseerOpen = true fediseerLoading = false return }} > {#if fediseerLoading} {:else} {/if} {new URL(post.community.actor_id).hostname}
{$t('post.actions.more.actions')} {#if $profile?.user && $profile?.jwt && $profile.user.local_user_view.person.id == post.creator.id} (editing = true)}> {$t('post.actions.more.edit')} {/if} {#if $profile?.jwt} { if ($profile?.jwt) post.read = await markAsRead(post.post, !post.read, $profile.jwt) }} > {post.read ? $t('post.actions.more.markUnread') : $t('post.actions.more.markRead')} {/if} {#if post.post.url && type == 'embed'} (mediaBias = !mediaBias)}> {$t('post.actions.more.mediaBias')} {/if} { navigator.share?.({ url: localShare ? `${instanceToURL(getInstance())}/post/${post.post.id}` : post.post.ap_id, }) ?? navigator.clipboard.writeText( localShare ? `${instanceToURL(getInstance())}/post/${post.post.id}` : post.post.ap_id ) toast({ content: $t('toast.copied') }) }} class="flex-1 !py-0" > {$t('post.actions.more.share')} {#if !post.post.local} {/if} {#if post.post.body && $userSettings.translator} { // @ts-ignore text.set(post.post.body) translating = !translating }} > {$t('post.actions.more.translate')} {/if} {#if $profile?.jwt} { setSessionStorage('postDraft', { body: `${ $userSettings.crosspostOriginalLink ? `cross-posted from: ${post.post.ap_id}` : `` }\n${ post.post.body ? '>' + post.post.body.split('\n').join('\n> ') : '' }`, url: post.post.url, title: post.post.name, loading: false, nsfw: post.post.nsfw, community: null, image: null, }) goto('/create/post?crosspost=true') }} > {$t('post.actions.more.crosspost')} {#if $profile.user && post.creator.id == $profile.user.local_user_view.person.id} { if ($profile?.jwt) post.post.deleted = await deleteItem( post, !post.post.deleted, $profile.jwt ) }} color="danger-subtle" > {post.post.deleted ? $t('post.actions.more.restore') : $t('post.actions.more.delete')} {/if} {#if $profile.user?.local_user_view.person.id != post.creator.id} {#if feature('hidePosts', $site?.version)} { if (!$profile?.jwt) return const hidden = await hidePost( post.post.id, !post.hidden, $profile?.jwt ) post.hidden = hidden if (hidden) { dispatcher('hide', hidden) } }} color="danger-subtle" > {post.hidden ? $t('post.actions.more.unhide') : $t('post.actions.more.hide')} {/if} report(post)} color="danger-subtle"> {$t('moderation.report')} {/if} {/if}