FriendsOfFlarum / gamification

Add upvotes, downvotes, and ranks to your Flarum Community
https://discuss.flarum.org/d/20671-friendsofflarum-gamification
MIT License
36 stars 17 forks source link

Vote count displayed is always zero #121

Open dinapolis opened 4 months ago

dinapolis commented 4 months ago

Bug Report

Current Behavior Vote count is always zero in the discussion list

Steps to Reproduce

  1. Open discussion list - all discussions, or any tag, sorting method doesn't matter. Refreshing doesn't make a difference - all posts show '0' regardless of the amount of votes.
  2. Click on any post: the amount of votes is displayed correctly
  3. Go back to the list (back button on browser or keyboard shortcut): the amount of votes for that post will now be the correct number.
  4. Refresh the discussion list page and all votes go back to zero again.
+-----------------------------------+---------+--------+
| Flarum Extensions                 |         |        |
+-----------------------------------+---------+--------+
| ID                                | Version | Commit |
+-----------------------------------+---------+--------+
| flarum-tags                       | v1.8.0  |        |
| flarum-mentions                   | v1.8.3  |        |
| flarum-subscriptions              | v1.8.0  |        |
| flarum-suspend                    | v1.8.1  |        |
| fof-follow-tags                   | 1.2.3   |        |
| flarum-flags                      | v1.8.0  |        |
| v17development-seo                | v1.8.1  |        |
| litalino-title-content-length     | 1.0.0   |        |
| fof-user-bio                      | 1.4.0   |        |
| fof-sitemap                       | 2.2.1   |        |
| fof-mason                         | 1.2.1   |        |
| fof-ignore-users                  | 1.2.1   |        |
| fof-gamification                  | 1.6.7   |        |
| fof-best-answer                   | 1.4.4   |        |
| fof-anti-spam                     | 1.1.2   |        |
| flarum-sticky                     | v1.8.0  |        |
| flarum-statistics                 | v1.8.0  |        |
| flarum-markdown                   | v1.8.0  |        |
| flarum-lock                       | v1.8.0  |        |
| flarum-likes                      | v1.8.0  |        |
| flarum-lang-english               | v1.8.0  |        |
| flarum-extension-manager          | v1.0.2  |        |
| flarum-emoji                      | v1.8.0  |        |
| flarum-com-tags-under-discussion  | 1.0.0   |        |
| flarum-bbcode                     | v1.8.0  |        |
| datlechin-signup-button           | v0.1.1  |        |
| clarkwinkelmann-create-user-modal | 1.3.1   |        |
| blomstra-spam-prevention          | 1.6.0   |        |
+-----------------------------------+---------+--------+
dinapolis commented 4 months ago

2024-07-18-flarum.log attached storage/logs flarum log file

luceos commented 4 months ago

@dinapolis can you share a screenshot of your gamification settings. I tried to reproduce this and upon refreshing the index, my upvotes did correctly show on the index..

dinapolis commented 4 months ago
settings-1 rankings permissions
luceos commented 4 months ago

I'm unable to reproduce this. Someone else should probably test this on their instance.