feat: add p tag to poll response event
This commit is contained in:
parent
243cb347d1
commit
1b8adce5fb
1 changed files with 1 additions and 0 deletions
|
|
@ -424,6 +424,7 @@ export function createPollResponseDraftEvent(
|
||||||
kind: ExtendedKind.POLL_RESPONSE,
|
kind: ExtendedKind.POLL_RESPONSE,
|
||||||
tags: [
|
tags: [
|
||||||
buildETag(pollEvent.id, pollEvent.pubkey),
|
buildETag(pollEvent.id, pollEvent.pubkey),
|
||||||
|
buildPTag(pollEvent.pubkey),
|
||||||
...selectedOptionIds.map((optionId) => buildResponseTag(optionId))
|
...selectedOptionIds.map((optionId) => buildResponseTag(optionId))
|
||||||
],
|
],
|
||||||
created_at: dayjs().unix()
|
created_at: dayjs().unix()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue