X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Factivity.ex;h=c1065611bf31d9eccc5e8eba005ac8cc210c55e4;hb=17ff4b43cb75334e6a6845a7d7ec9c88285a339d;hp=b6e8e9e1dce4ffab3c5ea2779d9a3a30094a9e3d;hpb=d75d0ae134e0a8de9504507f4c78567b9eedcc72;p=akkoma diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index b6e8e9e1d..c1065611b 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -21,7 +21,7 @@ defmodule Pleroma.Activity do @type t :: %__MODULE__{} @type actor :: String.t() - @primary_key {:id, Pleroma.FlakeId, autogenerate: true} + @primary_key {:id, FlakeId.Ecto.CompatType, autogenerate: true} # https://github.com/tootsuite/mastodon/blob/master/app/models/notification.rb#L19 @mastodon_notification_types %{ @@ -139,7 +139,7 @@ defmodule Pleroma.Activity do @spec get_by_id(String.t()) :: Activity.t() | nil def get_by_id(id) do - case Pleroma.FlakeId.is_flake_id?(id) do + case FlakeId.flake_id?(id) do true -> Activity |> where([a], a.id == ^id)