feat: add p tag to poll response event
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user