alpha
Login
or
Join now
danabra.mov
/
sidetrail
Star
1
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
an app to share curated trails
sidetrail.app
Star
1
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix non-post bsky links
author
Dan Abramov
date
6 months ago
(Dec 6, 2025, 4:49 AM +0900)
commit
2c875e1b
2c875e1bf269012266519b2e70e4293f784023a4
parent
8776373b
8776373bcf7b3eae2286083119b68d181998410f
+2
-3
2 changed files
Expand all
Collapse all
Unified
Split
app
at
(trail)
[handle]
trail
[rkey]
StopEmbed.tsx
utils
linkExtraction.ts
+1
-1
app/at/(trail)/[handle]/trail/[rkey]/StopEmbed.tsx
Reviewed
···
25
25
if (existing) return existing;
26
26
27
27
const promise =
28
28
-
uri.startsWith("at://") || uri.includes("bsky.app")
28
28
+
uri.startsWith("at://") || (uri.includes("bsky.app") && uri.includes("/post/"))
29
29
? getBlueskyPost(uri)
30
30
: getLinkMetadata(uri);
31
31
+1
-2
app/at/(trail)/[handle]/trail/[rkey]/utils/linkExtraction.ts
Reviewed
···
29
29
if (httpMatch) {
30
30
const url = httpMatch[0];
31
31
32
32
-
// Check if it's a bsky.app URL
33
33
-
if (url.includes("bsky.app")) {
32
32
+
if (url.includes("bsky.app") && url.includes("/post/")) {
34
33
return {
35
34
type: "bluesky",
36
35
uri: url,