Skip to content

Commit

Permalink
🔗 Link profile name to post, not profile
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Nov 26, 2024
1 parent 68b503a commit 36fd55b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _extensions/bluesky-comments/bluesky-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ class BlueskyCommentsSection extends HTMLElement {

const author = reply.post.author
const text = reply.post.record?.text || ''
const postId = reply.post.uri.split('/').pop()

comment.innerHTML = `
<div class="author">
<a href="https://bsky.app/profile/${author.did}" target="_blank" rel="noopener noreferrer">
<a href="https://bsky.app/profile/${author.did}/post/${postId}" target="_blank" rel="noopener noreferrer">
${author.avatar ? `<img width="22px" src="${author.avatar}" />` : ''}
${author.displayName ?? author.handle} @${author.handle}
</a>
Expand Down

0 comments on commit 36fd55b

Please sign in to comment.