Skip to content

01a0949b - Show each forum gift as a reply and require 1 sat to comment - #129

Draft
TaprootFreakAI wants to merge 1 commit into
developfrom
01a0949b-gift-as-reply
Draft

01a0949b - Show each forum gift as a reply and require 1 sat to comment#129
TaprootFreakAI wants to merge 1 commit into
developfrom
01a0949b-gift-as-reply

Conversation

@TaprootFreakAI

Copy link
Copy Markdown
Collaborator

EN:
Indexed Lightning gifts on a forum note now appear as a reply from the payer. Optional invoice text is stored as the zap comment and shown on that reply. Unpaid replies from anyone except the parent author, a moderator, or a founder are rejected.

DE:
Ein bezahltes Geschenk auf einem Forum-Post erscheint jetzt als Antwort des Zahlers. Optionaler Invoice-Text wird als Zap-Kommentar gespeichert und auf dieser Antwort gezeigt. Unbezahlte Antworten von allen ausser dem Post-Autor, Moderatoren oder Gründern werden abgelehnt.

Details

After a validated kind:9735 is indexed, parent sats are incremented first (existing CTE). A reply is inserted afterwards from the payer (invoice payment_hash / pr, else a verified kind:9734). Gift-only replies stay nostrPublishState: skipped. POST /messages with inReplyTo is 403 { "error": "A reply needs a Bitcoin payment" } unless the caller is the parent author or moderator/founder.

Indexed NIP-57 zaps on a top-level note now insert a payer reply after
parent sats are committed. Optional invoice text is the zap comment.
Unpaid replies are 403 except the parent author, moderators, and founders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant