mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
1234fb2dd1
Co-authored-by: Sebastian Di Luzio <sebastian.di-luzio@iu.org> Co-authored-by: Emanuel Pina <contacto@emanuelpina.pt> Co-authored-by: lazzzis <lazzzis@outlook.com> Co-authored-by: Joaquín Sánchez <userquin@gmail.com> Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com> Co-authored-by: Francesco <129339155+katullo11@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: patak-dev <matias.capeletto@gmail.com>
25 lines
662 B
Vue
25 lines
662 B
Vue
<script setup lang="ts">
|
|
import type { mastodon } from 'masto'
|
|
|
|
const router = useRouter()
|
|
const route = useRoute()
|
|
|
|
onMounted(async () => {
|
|
// TODO: login check
|
|
await openPublishDialog('intent', getDefaultDraftItem({
|
|
status: route.query.text as string,
|
|
sensitive: route.query.sensitive === 'true' || route.query.sensitive === null,
|
|
spoilerText: route.query.spoiler_text as string,
|
|
visibility: route.query.visibility as mastodon.v1.StatusVisibility,
|
|
language: route.query.language as string,
|
|
}), true)
|
|
// TODO: need a better idea 👀
|
|
await router.replace('/home')
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<slot />
|
|
</div>
|
|
</template>
|