diff options
author | kaniini <ariadne@dereferenced.org> | 2019-10-04 22:11:34 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-10-04 22:11:34 +0000 |
commit | 43be47c16136363506fda9e013df5ea19a5cb0e5 (patch) | |
tree | d0c0c076c0def555be8f2fbeb94f292c2070560e /lib/pleroma/conversation | |
parent | 15513f02d09bf6fe4df293db7ac8425df2c6ecd2 (diff) | |
parent | c19e539d37dbc4289c6cf459db4512be9f9394a2 (diff) | |
download | pleroma-43be47c16136363506fda9e013df5ea19a5cb0e5.tar.gz |
Merge branch 'backport/hex-flake-id' into 'maint/1.1'
backport: hex `flake_id` support
See merge request pleroma/pleroma!1793
Diffstat (limited to 'lib/pleroma/conversation')
-rw-r--r-- | lib/pleroma/conversation/participation.ex | 4 | ||||
-rw-r--r-- | lib/pleroma/conversation/participation_recipient_ship.ex | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/conversation/participation.ex b/lib/pleroma/conversation/participation.ex index ea5b9fe17..e946f6de2 100644 --- a/lib/pleroma/conversation/participation.ex +++ b/lib/pleroma/conversation/participation.ex @@ -13,10 +13,10 @@ defmodule Pleroma.Conversation.Participation do import Ecto.Query schema "conversation_participations" do - belongs_to(:user, User, type: Pleroma.FlakeId) + belongs_to(:user, User, type: FlakeId.Ecto.CompatType) belongs_to(:conversation, Conversation) field(:read, :boolean, default: false) - field(:last_activity_id, Pleroma.FlakeId, virtual: true) + field(:last_activity_id, FlakeId.Ecto.CompatType, virtual: true) has_many(:recipient_ships, RecipientShip) has_many(:recipients, through: [:recipient_ships, :user]) diff --git a/lib/pleroma/conversation/participation_recipient_ship.ex b/lib/pleroma/conversation/participation_recipient_ship.ex index 932cbd04c..e3d158cbc 100644 --- a/lib/pleroma/conversation/participation_recipient_ship.ex +++ b/lib/pleroma/conversation/participation_recipient_ship.ex @@ -12,7 +12,7 @@ defmodule Pleroma.Conversation.Participation.RecipientShip do import Ecto.Changeset schema "conversation_participation_recipient_ships" do - belongs_to(:user, User, type: Pleroma.FlakeId) + belongs_to(:user, User, type: FlakeId.Ecto.CompatType) belongs_to(:participation, Participation) end |