diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index 46631f1a..9ec09608 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -154,7 +154,7 @@ {/if} {#if actions} - + {:else if view == 'compact'}
diff --git a/src/lib/components/lemmy/post/PostActions.svelte b/src/lib/components/lemmy/post/PostActions.svelte index 42e21f19..15582593 100644 --- a/src/lib/components/lemmy/post/PostActions.svelte +++ b/src/lib/components/lemmy/post/PostActions.svelte @@ -9,6 +9,7 @@ BugAnt, ChatBubbleOvalLeft, ChatBubbleOvalLeftEllipsis, + CheckBadge, EllipsisHorizontal, Eye, EyeSlash, @@ -19,6 +20,7 @@ Language, Newspaper, PencilSquare, + Scale, ServerStack, Share, Trash, @@ -57,18 +59,19 @@ import { t } from '$lib/translations' import { text } from '$lib/components/translate/translation' import Translation from '$lib/components/translate/Translation.svelte' - import { hidePost, postLink } from './helpers' + import { hidePost, postLink, type MediaType } from './helpers' import { feature } from '$lib/version' import Switch from '$lib/components/input/Switch.svelte' import { instanceToURL } from '$lib/util' export let post: PostView + export let type: MediaType | undefined = undefined + export let debug: boolean = false const dispatcher = createEventDispatcher<{ edit: PostView; hide: boolean }>() let editing = false let saving = false - export let debug: boolean = false let fediseerOpen = false let fediseerData: Data | null = null @@ -77,6 +80,11 @@ let translating = false let localShare = false + + let mediaBias = false + + const stripSubdomain = (url: string) => + new URL(url).hostname.split('.').slice(-2).join('.') {#if fediseerData} @@ -110,7 +118,15 @@ {/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} + {#if post.post.url && type == 'embed'} + + {/if}