Show reaction counts and user names only for reactions visible to the logged-in user (#42630).

Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23768 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-05-15 05:01:54 +00:00
parent 66e2d1a9a9
commit e7703a0170
5 changed files with 15 additions and 26 deletions

View File

@@ -75,12 +75,10 @@ class ReactionTest < ActiveSupport::TestCase
expected = {
1 => Reaction::Detail.new(
reaction_count: 3,
visible_users: [users(:users_003), users(:users_002), users(:users_001)],
user_reaction: reactions(:reaction_003)
),
6 => Reaction::Detail.new(
reaction_count: 1,
visible_users: [users(:users_002)],
user_reaction: nil
)