dont allow poll authors to vote on own polls, fix event table formatting

This commit is contained in:
toadlyBroodle 2023-04-07 08:00:56 +09:00
parent 900268c51a
commit 4782bd4a45
2 changed files with 4 additions and 2 deletions

2
69.md
View File

@ -66,6 +66,7 @@ A voting client:
* SHOULD NOT allow submission of zap events with amounts greater than `value_maximum` (when specified) * SHOULD NOT allow submission of zap events with amounts greater than `value_maximum` (when specified)
* SHOULD NOT allow submission of zap events with amounts less than `value_minimum` (when specified) * SHOULD NOT allow submission of zap events with amounts less than `value_minimum` (when specified)
* SHOULD NOT allow submission of zap events after `closed_at` time (when specified) * SHOULD NOT allow submission of zap events after `closed_at` time (when specified)
* SHOULD NOT allow poll author to vote on their own polls
* SHOULD hide tally results, until after a user has zapped the note * SHOULD hide tally results, until after a user has zapped the note
## Zap vote format ## Zap vote format
@ -100,6 +101,7 @@ A tallying client:
* MUST ONLY include full satoshi value amounts in option tallies from ALL eligible zaps that meet ALL following criteria: * MUST ONLY include full satoshi value amounts in option tallies from ALL eligible zaps that meet ALL following criteria:
* MUST ONLY tally zaps that reference the original poll event by its `e` tag value * MUST ONLY tally zaps that reference the original poll event by its `e` tag value
* MUST ONLY tally zaps sent to a `p` key specified in the original poll event * MUST ONLY tally zaps sent to a `p` key specified in the original poll event
* MUST NOT tally zaps from the poll author's `p`
* MUST ONLY include zap amounts less than or equal to `value_maximum`, if specified * MUST ONLY include zap amounts less than or equal to `value_maximum`, if specified
* MUST ONLY include zap amounts greater than or equal to `value_minimum`, if specified * MUST ONLY include zap amounts greater than or equal to `value_minimum`, if specified
* if both `value_maximum` and `value_minimum` are specified AND are equal: * if both `value_maximum` and `value_minimum` are specified AND are equal: