mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 05:35:44 +08:00
FIX: Page size check for thread messages (#21692)
This commit is contained in:
parent
dad6b61807
commit
3fed1abf2f
@ -175,7 +175,7 @@ module Chat
|
||||
page_size = params[:page_size]&.to_i || 1000
|
||||
direction = params[:direction].to_s
|
||||
message_id = params[:message_id]
|
||||
if page_size > 50 ||
|
||||
if page_size > 100 ||
|
||||
(
|
||||
message_id.blank? ^ direction.blank? &&
|
||||
(direction.present? && !CHAT_DIRECTIONS.include?(direction))
|
||||
|
Loading…
x
Reference in New Issue
Block a user