fix: remove auth requirement (#29)

This commit is contained in:
三咲智子 Kevin Deng 2022-11-23 16:50:28 +08:00 committed by GitHub
parent 074da4768e
commit 07667bd3f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View file

@ -1,8 +1,4 @@
<script setup lang="ts"> <script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
const paginator = masto.trends.getStatuses() const paginator = masto.trends.getStatuses()
</script> </script>

View file

@ -1,9 +1,4 @@
<script setup lang="ts"> <script setup lang="ts">
const token = useCookie('nuxtodon-token')
const router = useRouter()
if (!token.value)
router.replace('/public')
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value)) const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value))
</script> </script>