import Ecto.Query
@type t :: %__MODULE__{}
+ @primary_key {:id, Pleroma.FlakeId, autogenerate: true}
# https://github.com/tootsuite/mastodon/blob/master/app/models/notification.rb#L19
@mastodon_notification_types %{
)
end
+ def get_by_id(id) do
+ Repo.get(Activity, id)
+ end
+
# TODO:
# Go through these and fix them everywhere.
# Wrong name, only returns create activities