feat(reply): navigate to thread on publish (#852)

This commit is contained in:
Piotrek Tomczewski 2023-01-07 23:18:15 +01:00 committed by GitHub
parent c1aac9d2dc
commit 1817afdb23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

3
composables/status.ts Normal file
View file

@ -0,0 +1,3 @@
import type { Status } from 'masto'
export const navigateToStatus = ({ status, focusReply = false }: { status: Status; focusReply?: boolean }) => navigateTo({ path: getStatusRoute(status).href, state: { focusReply } })