From: rinpatch Date: Tue, 22 Jan 2019 07:54:11 +0000 (+0300) Subject: Add get_by_id to activity.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e460820fcfcdc68c3e2a43ee69d587ca261324f8;p=akkoma Add get_by_id to activity.ex --- 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