mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
fix: 🩹 duplicate update
This commit is contained in:
parent
0b7b2fd36c
commit
211b49a26a
1 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,7 @@ import { renderActivity } from "@/remote/activitypub/renderer/index.js";
|
||||||
import renderNote from "@/remote/activitypub/renderer/note.js";
|
import renderNote from "@/remote/activitypub/renderer/note.js";
|
||||||
import renderUpdate from "@/remote/activitypub/renderer/update.js";
|
import renderUpdate from "@/remote/activitypub/renderer/update.js";
|
||||||
import { deliverToRelays } from "@/services/relay.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";
|
import { fetchMeta } from "@/misc/fetch-meta.js";
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
@ -489,7 +489,8 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
pollUpdate.votes = newVotes;
|
pollUpdate.votes = newVotes;
|
||||||
if (notEmpty(pollUpdate)) {
|
if (notEmpty(pollUpdate)) {
|
||||||
await Polls.update(note.id, 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;
|
publishing = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue