summaryrefslogtreecommitdiff
path: root/packages/backend/src/remote/activitypub/models
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/remote/activitypub/models')
-rw-r--r--packages/backend/src/remote/activitypub/models/question.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/remote/activitypub/models/question.ts b/packages/backend/src/remote/activitypub/models/question.ts
index 9e75864c63..034501572a 100644
--- a/packages/backend/src/remote/activitypub/models/question.ts
+++ b/packages/backend/src/remote/activitypub/models/question.ts
@@ -69,7 +69,7 @@ export async function updateQuestion(value: any) {
const oldCount = poll.votes[poll.choices.indexOf(choice)];
const newCount = apChoices!.filter(ap => ap.name === choice)[0].replies!.totalItems;
- if (oldCount != newCount) {
+ if (oldCount !== newCount) {
changed = true;
poll.votes[poll.choices.indexOf(choice)] = newCount;
}