Include note filenames in new share links

This commit is contained in:
eezd committed 2026-10-20 14:41:43 +08:00
1 parent ac81544e03
commit e66fee9dac
4 files changed
+54 -6

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ const busy = ref(false)
const failed = ref(false)
const fmt = new Intl.DateTimeFormat('zh-CN', { dateStyle: 'short', timeStyle: 'short' })
const linkOf = (s: Share) => `${location.origin}/s/${s.token}`
const linkOf = (s: Share) => `${location.origin}/s/${encodeURIComponent(s.token)}`
const expired = (s: Share) => s.expiresAt !== 0 && s.expiresAt <= Date.now()
function errorText(err: unknown) {