Skip to content

A platform for community discussion. Free, open, simple.

FIX: removes destroyed mentioned used (#21841)

Joffrey JAFFEUX6c3a51328c2b
diff --git a/plugins/chat/app/serializers/chat/message_serializer.rb b/plugins/chat/app/serializers/chat/message_serializer.rb
index 4c7d955513f..eb277054e65 100644
--- a/plugins/chat/app/serializers/chat/message_serializer.rb
+++ b/plugins/chat/app/serializers/chat/message_serializer.rb
@@ -30,6 +30,7 @@ module Chat
object
.chat_mentions
.map(&:user)
+ .compact
.sort_by(&:id)
.map { |user| BasicUserWithStatusSerializer.new(user, root: false) }
.as_json