fiatjaf / nocomment

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

Login with existing nostr account #27

Closed nima1981 closed 9 months ago

nima1981 commented 9 months ago

Is it possible to login with my existing nostr account before posting a comment?

fiatjaf commented 9 months ago

Yes, if you have a NIP-07 extension it should prompt you to get your pubkey when you click to comment.

nima1981 commented 9 months ago

OK, for example, I have the nos2x-fox extension installed in my firefox. I went to https://dissentwatch.com/boost/?boost_post_id=668155 entered a comment and published it. It published it with a new random public key and didn't prompt me for anything it seems.

fiatjaf commented 9 months ago

I tried the same and got a prompt from nos2x:

2023-11-27-120133_797x719_scrot

nima1981 commented 9 months ago

Hmmm interesting, I must be doing something wrong, will keep trying and report back.

fiatjaf commented 9 months ago

I just checked the code and I still think it should be working. Can you try from another browser installation, incognito mode or another extension?

nima1981 commented 9 months ago

Yes, I tried from both regular and private browsing mode, will try other things.

fiatjaf commented 9 months ago

You can also try replacing NoComment with https://github.com/fr4nzap/zapthreads and see if it works better.

nima1981 commented 9 months ago

I think my nos2x extension was old an defective. I reinstalled it and now it worked! :D