feat: add some stats to post actions
This commit is contained in:
1 parent
47cd2a0fea
commit
dbb6f16fde
8 files changed
+81
-30
No files matched your search
@@ -44,19 +44,8 @@
|
||||
|
||||
export let url: string
|
||||
export let type: MediaType = 'embed'
|
||||
|
||||
export let openMediaBias = false
|
||||
|
||||
const stripSubdomain = (url: string) =>
|
||||
new URL(url).hostname.split('.').slice(-2).join('.')
|
||||
</script>
|
||||
|
||||
{#if openMediaBias}
|
||||
{#await import('$lib/components/mbfc/MBFCModal.svelte') then { default: MbfcModal }}
|
||||
<MbfcModal domain={stripSubdomain(url)} bind:open={openMediaBias} />
|
||||
{/await}
|
||||
{/if}
|
||||
|
||||
<Menu {...$$restProps}>
|
||||
<slot name="target" slot="target" />
|
||||
|
||||
|
||||
Reference in new issue
Block a user