diff options
author | dan <dan.abramov@gmail.com> | 2023-12-12 19:31:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 11:31:02 -0800 |
commit | 27561ae79fd41148ff3d2ff5e7a1330aa58524d6 (patch) | |
tree | 9e713ef188d6bf51f9918997e52662df1e52058d /src/lib/routes | |
parent | 2f8e7b265600cf537f385c95cb22647484793b4c (diff) | |
download | voidsky-27561ae79fd41148ff3d2ff5e7a1330aa58524d6.tar.zst |
Fix View Full Thread (#2181)
Diffstat (limited to 'src/lib/routes')
-rw-r--r-- | src/lib/routes/links.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/routes/links.ts b/src/lib/routes/links.ts index 397a5916c..538f30cd3 100644 --- a/src/lib/routes/links.ts +++ b/src/lib/routes/links.ts @@ -7,11 +7,11 @@ export function makeProfileLink( }, ...segments: string[] ) { - return [ - `/profile`, - `${isInvalidHandle(info.handle) ? info.did : info.handle}`, - ...segments, - ].join('/') + let handleSegment = info.did + if (info.handle && !isInvalidHandle(info.handle)) { + handleSegment = info.handle + } + return [`/profile`, handleSegment, ...segments].join('/') } export function makeCustomFeedLink( |