From 163e3ee7563ef7d598cbfdbe5d7e3091f6cd8f99 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 17 Mar 2026 01:33:51 +0100 Subject: [PATCH] feat: shorten DID in public note URLs by stripping did:plc: prefix URLs are now /pub//rkey instead of /pub/did:plc:/rkey. Non-plc DIDs keep their method prefix (e.g. web:example.com). --- src/components/PublicNoteList.vue | 3 ++- src/components/StackedPublicNote.vue | 3 ++- src/hooks/useATProtoLinks.hook.ts | 11 ++++++----- src/modules/atproto/shortDid.ts | 6 ++++++ src/router/router.ts | 4 ++-- src/views/PublicNoteListByDidView.vue | 5 +++-- src/views/PublicNoteView.vue | 9 +++++---- 7 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 src/modules/atproto/shortDid.ts diff --git a/src/components/PublicNoteList.vue b/src/components/PublicNoteList.vue index 9a0846e..075c245 100644 --- a/src/components/PublicNoteList.vue +++ b/src/components/PublicNoteList.vue @@ -1,5 +1,6 @@