PrimalHQ / primal-web-app

Primal's web app for Nostr, as experienced on primal.net.
https://primal.net
MIT License
189 stars 37 forks source link

Render Embedded Zap Amount #82

Open MerryOscar opened 2 months ago

MerryOscar commented 2 months ago

Currently if someone embeds a zap kind 9735 in a note using the nostr:nevent1... encoding, a note embed card is rendered but there is no information about the zap.

This PR is a simple improvement that adds the zap amount by parsing it from the embedded description tag in the zap.

The sender pubkey is also available so the sender profile could be rendered as well - although I was unsure how to get the PrimalUser class from the sender pubkey.

Before

fountain-embedded-zap-current

After

primal-embedded-zap-with-amount