elk/composables/status.ts
2023-01-08 09:39:11 +01:00

6 lines
287 B
TypeScript

import type { mastodon } from 'masto'
export const navigateToStatus = ({ status, focusReply = false }: { status: mastodon.v1.Status; focusReply?: boolean }) => {
useNuxtApp().$rememberStatusPosition(status)
navigateTo({ path: getStatusRoute(status).href, state: { focusReply } })
}