From 2339c63fcb1f581244043a3df0221718d1350ac6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 18 Jun 2023 19:38:32 -0700 Subject: [PATCH] fix: :adhesive_bandage: duplicate update --- packages/backend/src/server/api/endpoints/notes/edit.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/edit.ts b/packages/backend/src/server/api/endpoints/notes/edit.ts index 2e1e62402..90a4f4ded 100644 --- a/packages/backend/src/server/api/endpoints/notes/edit.ts +++ b/packages/backend/src/server/api/endpoints/notes/edit.ts @@ -33,7 +33,7 @@ import { renderActivity } from "@/remote/activitypub/renderer/index.js"; import renderNote from "@/remote/activitypub/renderer/note.js"; import renderUpdate from "@/remote/activitypub/renderer/update.js"; import { deliverToRelays } from "@/services/relay.js"; -import { deliverQuestionUpdate } from "@/services/note/polls/update.js"; +// import { deliverQuestionUpdate } from "@/services/note/polls/update.js"; import { fetchMeta } from "@/misc/fetch-meta.js"; export const meta = { @@ -489,7 +489,8 @@ export default define(meta, paramDef, async (ps, user) => { pollUpdate.votes = newVotes; if (notEmpty(pollUpdate)) { await Polls.update(note.id, pollUpdate); - await deliverQuestionUpdate(note.id); + // Seemingly already handled by by the rendered update activity + // await deliverQuestionUpdate(note.id); } publishing = true; }