mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: Add explicit order for chat mentioned users (#21765)
Followup d4a5b79592
which could sometimes flake on tests due to ordering issues.
This commit is contained in:
parent
dab37c1a5a
commit
39d213a023
@ -29,6 +29,7 @@ module Chat
|
||||
def mentioned_users
|
||||
User
|
||||
.where(id: object.chat_mentions.pluck(:user_id))
|
||||
.order("users.id ASC")
|
||||
.map { |user| BasicUserWithStatusSerializer.new(user, root: false) }
|
||||
.as_json
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user