pleroma/lib
Lain Soykaf 727e9e7749
Fix votersCount inflation in multiple-choice polls
increase_vote_count/3 was incrementing votersCount on every vote
activity, causing inflation when a single voter picks multiple options.
Now only increments when the actor is a new unique voter, and preserves
existing votersCount otherwise.

Also adds is_integer guard to voters_count/1 to handle nil safely, and
adds tests for the voters_count clause ordering and edge cases.
2026-05-06 11:33:34 +04:00
..
mix Move object_to_search_data/1 to Pleroma.Search 2026-03-25 14:47:39 -07:00
pleroma Fix votersCount inflation in multiple-choice polls 2026-05-06 11:33:34 +04:00