01a0949b - Show each forum gift as a reply and require 1 sat to comment - #129
Draft
TaprootFreakAI wants to merge 1 commit into
Draft
01a0949b - Show each forum gift as a reply and require 1 sat to comment#129TaprootFreakAI wants to merge 1 commit into
TaprootFreakAI wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
satsare incremented first (existing CTE). A reply is inserted afterwards from the payer (invoicepayment_hash/pr, else a verified kind:9734). Gift-only replies staynostrPublishState: skipped.POST /messageswithinReplyTois 403{ "error": "A reply needs a Bitcoin payment" }unless the caller is the parent author ormoderator/founder.