1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-05 02:08:09 +09:00
elk/composables/status.ts
2023-01-08 14:21:09 +08:00

4 lines
234 B
TypeScript

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