diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index 353f9f6cd..8fd0311d2 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -36,6 +36,10 @@ defmodule Pleroma.Activity do ) 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