mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:12:45 +08:00
FIX: Get a room wasn't enforcing sequential properly
This commit is contained in:
parent
a6ebe495bf
commit
cfc0cc936f
|
@ -146,6 +146,7 @@ class ComposerMessagesFinder
|
|||
last_x_replies = @topic.
|
||||
posts.
|
||||
where(user_id: @user.id).
|
||||
order('created_at desc').
|
||||
limit(SiteSetting.get_a_room_threshold).
|
||||
pluck(:reply_to_user_id).
|
||||
find_all {|uid| uid != @user.id && uid == reply_to_user_id}
|
||||
|
|
Loading…
Reference in New Issue
Block a user