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. |
||
|---|---|---|
| .. | ||
| activity_pub | ||
| admin_api | ||
| api_spec | ||
| auth | ||
| common_api | ||
| feed | ||
| mastodon_api | ||
| media_proxy | ||
| metadata | ||
| o_auth | ||
| o_status | ||
| pleroma_api | ||
| plugs | ||
| preload/providers | ||
| push | ||
| remote_interaction | ||
| rich_media | ||
| static_fe | ||
| views | ||
| web_finger | ||
| common_api_test.exs | ||
| fallback_test.exs | ||
| federator_test.exs | ||
| gettext_test.exs | ||
| manifest_controller_test.exs | ||
| media_proxy_test.exs | ||
| mongoose_im_controller_test.exs | ||
| node_info_test.exs | ||
| registration_test.exs | ||
| rel_me_test.exs | ||
| shout_channel_test.exs | ||
| streamer_test.exs | ||
| uploader_controller_test.exs | ||
| web_finger_test.exs | ||
| xml_test.exs | ||