commit: 707cd9389c4cebd5318fbd43527d2d3578310149
parent: 7d55bb0896dc8b4a424206b5be19cc6705fbdf2b
Author: Haelwenn <contact+git.pleroma.social@hacktivis.me>
Date: Tue, 22 Jan 2019 14:28:17 +0000
Merge branch 'fix/activity_get_by_id' into 'develop'
Add get_by_id to activity.ex
See merge request pleroma/pleroma!695
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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