{#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 $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} Creator {post.creator.name} {post.community.title} { e.stopImmediatePropagation() fediseerLoading = true const data = await fediseer.getInstanceInfo( new URL(post.community.actor_id).hostname ) console.log(data) fediseerData = data fediseerOpen = true fediseerLoading = false return }} > {#if fediseerLoading} {:else} {/if} {new URL(post.community.actor_id).hostname}
Actions {#if $profile?.user && $profile?.jwt && $profile.user.local_user_view.person.id == post.creator.id} (editing = true)}> Edit {/if} {#if $profile?.jwt} { if ($profile?.jwt) post.read = await markAsRead(post.post, !post.read, $profile.jwt) }} > Mark as {post.read ? 'Unread' : 'Read'} {/if} { navigator.share?.({ url: post.post.ap_id, }) ?? navigator.clipboard.writeText(post.post.ap_id) }} > Share {#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') }} > 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 ? 'Restore' : 'Delete'} {/if} {#if $profile.user?.local_user_view.person.id != post.creator.id} report(post)} color="danger-subtle"> Report {/if} {/if}