Show reactions to the user, rather than user created reactions to other users (#15243)
* Change display from "created by user" to "reacted to user" The reaction user_id is the creator (who reacted) and not the target (reacting to what). On the user edit page, show reactions to the user, rather than reaction from the user.
This commit is contained in:
parent
134d157916
commit
47663fd077
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ module Admin
|
|||
@related_vomit_reactions =
|
||||
Reaction.where(reactable_type: "Comment", reactable_id: user_comment_ids, category: "vomit")
|
||||
.or(Reaction.where(reactable_type: "Article", reactable_id: user_article_ids, category: "vomit"))
|
||||
.or(Reaction.where(reactable_type: "User", user_id: @user.id, category: "vomit"))
|
||||
.or(Reaction.where(reactable_type: "User", reactable_id: @user.id, category: "vomit"))
|
||||
.includes(:reactable)
|
||||
.order(created_at: :desc).limit(15)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue