feat: polls (#451)

Co-authored-by: silberengel <silberengel7@protonmail.com>
This commit is contained in:
Cody Tseng
2025-07-27 12:05:50 +08:00
committed by GitHub
parent 636ceacdad
commit b35e0cf850
35 changed files with 1240 additions and 130 deletions

View File

@@ -62,6 +62,8 @@ export const GROUP_METADATA_EVENT_KIND = 39000
export const ExtendedKind = {
PICTURE: 20,
POLL: 1068,
POLL_RESPONSE: 1018,
COMMENT: 1111,
FAVORITE_RELAYS: 10012,
BLOSSOM_SERVER_LIST: 10063,
@@ -105,3 +107,8 @@ export const DEFAULT_NOSTRCONNECT_RELAY = [
'wss://nos.lol/',
'wss://relay.primal.net'
]
export const POLL_TYPE = {
MULTIPLE_CHOICE: 'multiplechoice',
SINGLE_CHOICE: 'singlechoice'
} as const