summaryrefslogtreecommitdiff
path: root/lib/pleroma/chat/message_reference.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/chat/message_reference.ex')
-rw-r--r--lib/pleroma/chat/message_reference.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/chat/message_reference.ex b/lib/pleroma/chat/message_reference.ex
index 89537d155..06fdb3401 100644
--- a/lib/pleroma/chat/message_reference.ex
+++ b/lib/pleroma/chat/message_reference.ex
@@ -20,7 +20,7 @@ defmodule Pleroma.Chat.MessageReference do
@primary_key {:id, FlakeId.Ecto.Type, autogenerate: true}
schema "chat_message_references" do
- belongs_to(:object, Object)
+ belongs_to(:object, Object, type: FlakeId.Ecto.CompatType)
belongs_to(:chat, Chat, type: FlakeId.Ecto.CompatType)
field(:unread, :boolean, default: true)