mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Block accidental serialization of entire AR models (#27668)
This commit is contained in:
@ -1410,7 +1410,7 @@ RSpec.describe TopicQuery do
|
||||
end
|
||||
|
||||
def read(user, topic, post_number)
|
||||
TopicUser.update_last_read(user, topic, post_number, post_number, 10_000)
|
||||
TopicUser.update_last_read(user, topic.id, post_number, post_number, 10_000)
|
||||
end
|
||||
|
||||
before do
|
||||
|
Reference in New Issue
Block a user