tangled
alpha
login
or
join now
thisismissem.social
/
sidetrail
forked from
danabra.mov/sidetrail
0
fork
atom
an app to share curated trails
0
fork
atom
overview
issues
pulls
pipelines
fix non-post bsky links
danabra.mov
3 months ago
2c875e1b
8776373b
+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
···
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
···
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,