tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
[web] fix external link not displayed
tsiry-sandratraina.com
8 months ago
bfcab309
45640933
+4
-5
2 changed files
expand all
collapse all
unified
split
apps
web
src
layouts
ExternalLinks
ExternalLinks.tsx
pages
home
nowplayings
NowPlayings.tsx
+1
-2
apps/web/src/layouts/ExternalLinks/ExternalLinks.tsx
···
21
21
},
22
22
} = useRouter();
23
23
const display =
24
24
-
pathname.includes("app.rocksky.scrobble") ||
25
25
-
pathname.includes("app.rocksky.song");
24
24
+
pathname.includes("/scrobble/") || pathname.includes("/song/");
26
25
return (
27
26
<>
28
27
{display && song?.spotifyLink && (
+3
-3
apps/web/src/pages/home/nowplayings/NowPlayings.tsx
···
227
227
<div className="flex flex-col items-center flex-1">
228
228
{currentlyPlaying?.trackUri && (
229
229
<Link
230
230
-
to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky", "")}`}
230
230
+
to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky.", "")}`}
231
231
>
232
232
<Cover
233
233
src={currentlyPlaying?.albumArt}
···
237
237
)}
238
238
{currentlyPlaying?.trackUri && (
239
239
<Link
240
240
-
to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky", "")}`}
240
240
+
to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky.", "")}`}
241
241
>
242
242
<TrackTitle>{currentlyPlaying?.title}</TrackTitle>
243
243
</Link>
···
265
265
<TrackTitle>{currentlyPlaying?.title}</TrackTitle>
266
266
)}
267
267
<Link
268
268
-
to={`/${currentlyPlaying?.artistUri?.split("at://")[1].replace("app.rocksky", "")}`}
268
268
+
to={`/${currentlyPlaying?.artistUri?.split("at://")[1].replace("app.rocksky.", "")}`}
269
269
>
270
270
<TrackArtist>{currentlyPlaying?.artist}</TrackArtist>
271
271
</Link>