diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-10-18 22:09:11 +0100 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-10-18 22:09:11 +0100 |
| commit | 2a4c91efcc90db0c7839b4d60cf6cc402b14e394 (patch) | |
| tree | 0d0579dd911a6c9b74ebc84195cacf10eafe0918 /packages/backend/src/core | |
| parent | Merge branch 'develop' into feature/2024.9.0 (diff) | |
| parent | merge: Allow logged in users to refresh polls (!686) (diff) | |
| download | sharkey-2a4c91efcc90db0c7839b4d60cf6cc402b14e394.tar.gz sharkey-2a4c91efcc90db0c7839b4d60cf6cc402b14e394.tar.bz2 sharkey-2a4c91efcc90db0c7839b4d60cf6cc402b14e394.zip | |
Merge branch 'develop' into feature/2024.9.0
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/activitypub/models/ApQuestionService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/activitypub/models/ApQuestionService.ts b/packages/backend/src/core/activitypub/models/ApQuestionService.ts index 73004d10b0..9246398fde 100644 --- a/packages/backend/src/core/activitypub/models/ApQuestionService.ts +++ b/packages/backend/src/core/activitypub/models/ApQuestionService.ts @@ -98,7 +98,7 @@ export class ApQuestionService { const newCount = apChoices.filter(ap => ap.name === choice).at(0)?.replies?.totalItems; if (newCount == null) throw new Error('invalid newCount: ' + newCount); - if (oldCount !== newCount) { + if (oldCount <= newCount) { changed = true; poll.votes[poll.choices.indexOf(choice)] = newCount; } |