Skip to content

Commit

Permalink
Merge pull request #73 from AudiusProject/mjp-remove-leading-slash
Browse files Browse the repository at this point in the history
Remove leading slash from permalinks
  • Loading branch information
rickyrombo authored Sep 23, 2021
2 parents 434d783 + a9e864c commit c43ebcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/servlets/bedtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getTrackMetadata = async (trackId: number, ownerId: number | null): Promis
segments: track.track_segments,
isVerified: user.is_verified,
coverArt,
urlPath: track.permalink,
urlPath: track.permalink.substring(1), // strip the leading slash, as it's added later
gateways: user.creator_node_endpoint,
id: track.track_id
}
Expand Down Expand Up @@ -66,7 +66,7 @@ const getTracksFromCollection = async (collection: any, ownerUser: any): Promise
handle: userMap[t.owner_id].handle,
userName: userMap[t.owner_id].name,
segments: t.track_segments,
urlPath: t.permalink,
urlPath: t.permalink.substring(1), // strip the leading slash, as it's added later
id: t.track_id,
isVerified: userMap[t.owner_id].is_verified,
gateways: userMap[t.owner_id].creator_node_endpoint
Expand Down

0 comments on commit c43ebcb

Please sign in to comment.