Skip to content

Commit

Permalink
fix: Bluesky embed hashtag links broken (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
IsaacRF and delucis authored Jan 13, 2025
1 parent 9ecf730 commit 8c5c7f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clean-falcons-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astro-community/astro-embed-bluesky": patch
---

Fixes hashtag links in Bluesky embeds
2 changes: 1 addition & 1 deletion packages/astro-embed-bluesky/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function renderPostAsHtml(post?: AppBskyFeedDefs.PostView | Post) {
segment.mention?.did
)}">${escapeHTML(segment.text)}</a>`;
} else if (segment.isTag()) {
html += `<a href="https://bsky.app/hastag/${escapeHTML(
html += `<a href="https://bsky.app/hashtag/${escapeHTML(
segment.tag?.tag
)}">#${escapeHTML(segment.tag?.tag)}</a>`;
} else {
Expand Down

0 comments on commit 8c5c7f9

Please sign in to comment.