fiatjaf / nocomment

See a demo at https://fiatjaf.com/nostr.html
https://nocomment.pages.dev/embed.js
136 stars 17 forks source link

I posted a comment on an article on blogstack and the comment do not appear on blogstack, but appear on a nostr note #12

Open bitcoinuser opened 1 year ago

bitcoinuser commented 1 year ago

Hi,

I posted a test comment on this article on blogstack: https://blogstack.io/naddr1qqyrgdtpvf3rjvp3qyv8wumn8ghj7un9d3shjtnndehhyapwwdhkx6tpdspzqwlsccluhy6xxsr6l9a9uhhxf75g85g8a709tprjcn4e42h053vaqvzqqqr4guuymsj5

The note of the comment is here: note1ey859g47ukfxckx62mj0lhdpgq9htju5p5z09w37ek7lpjpmg70sr37xq3

But on blogstack article page I don't see the comment.

fiatjaf commented 1 year ago

@ChristianChiarulli I think this will work if you use the data-custom-base-event-id= property (or something with a similar name if calling it from React directly) and pass the actual article event id.

But to be actually good we must add support for a/naddr things on NoComment.

fiatjaf commented 1 year ago

@ChristianChiarulli you can pass a naddr1 reference to NoComment now, check the README.

ChristianChiarulli commented 1 year ago

I am able to comment and it shows up initially but the comments don't show when revisiting the link.

https://blogstack.io/naddr1qqyrwvrxx9jnycfhqyv8wumn8ghj7un9d3shjtnndehhyapwwdhkx6tpdspzqgmpfjzeea6lrkz44qa8sf7ljyj4vlm5u0rtzc456ggv2z2f0aumqvzqqqr4guydk46v

The comments that should be at the above link can be found on my profile they all begin with "test"

https://snort.social/p/npub1ygzj9skr9val9yqxkf67yf9jshtyhvvl0x76jp5er09nsc0p3j6qr260k2

<NoComment
  relays={[relayUrl]}
  customBase={naddr}
/>

Here is a note id: note1l7r33a50s6qwj68pk8ka3ekhvt79l55axmlsprg8erf5rrxrhp8s2ecv0q

I'll decode it when I get a min and see if the naddr isn't being referenced correctly or something