Skip to content

Commit

Permalink
Fixed bluesky url format
Browse files Browse the repository at this point in the history
  • Loading branch information
manojVivek committed Nov 23, 2024
1 parent 937e1e3 commit 2748ec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/apps/cron/src/searcher/bluesky-searcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class BlueskySearcher implements ISearcher {
return (
results.data?.posts.map(item => {
const at = new AtUri(item.uri);
const profileId = at.host.replace('did:plc:', '')
const postId = at.pathname.split('/')[2]
return `https://bsky.app/${profileId}/status/${postId}`
const profileId = at.host;
const postId = at.pathname.split('/')[2];
return `https://bsky.app/profile/${profileId}/post/${postId}`;
}) ?? []
);
}
Expand Down

0 comments on commit 2748ec5

Please sign in to comment.