Skip to content

Commit

Permalink
fix(native): Fixed link url in native app
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Tomczewski committed Jan 27, 2023
1 parent db1d91a commit 1874cdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/status/StatusActionsMore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const { client } = $(useMasto())
const getPermalinkUrl = (status: mastodon.v1.Status) => {
const url = getStatusPermalinkRoute(status)
if (url)
return `${location.origin}/${url}`
return !import.meta.env.TAURI_PLATFORM ? `${location.origin}/${url}` : `https://elk.zone/${url}`
return null
}
Expand Down

0 comments on commit 1874cdf

Please sign in to comment.