mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +08:00
FIX: correctly add user info data to message serializer (#20348)
Previous commit 479c0a3051
was done with the assumption that this info was defined on user serializer but it was actually defined on post serializer in core. This commit extends the user serializer for messages to add this data to the user.
Also correctly adds serializer test to ensure we actually have this data.
This commit is contained in:
@ -148,6 +148,7 @@ after_initialize do
|
||||
load File.expand_path("../app/models/reviewable_chat_message.rb", __FILE__)
|
||||
load File.expand_path("../app/models/chat_view.rb", __FILE__)
|
||||
load File.expand_path("../app/models/category_channel.rb", __FILE__)
|
||||
load File.expand_path("../app/serializers/chat_message_user_serializer.rb", __FILE__)
|
||||
load File.expand_path("../app/serializers/structured_channel_serializer.rb", __FILE__)
|
||||
load File.expand_path("../app/serializers/chat_webhook_event_serializer.rb", __FILE__)
|
||||
load File.expand_path("../app/serializers/chat_in_reply_to_serializer.rb", __FILE__)
|
||||
|
Reference in New Issue
Block a user