aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-01-22 14:28:17 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-01-22 14:28:17 +0000
commit707cd9389c4cebd5318fbd43527d2d3578310149 (patch)
tree74f1119baf8b807e8dad296a9cf1a1c340da6655 /lib
parent7d55bb0896dc8b4a424206b5be19cc6705fbdf2b (diff)
parente460820fcfcdc68c3e2a43ee69d587ca261324f8 (diff)
downloadpleroma-707cd9389c4cebd5318fbd43527d2d3578310149.tar.gz
Merge branch 'fix/activity_get_by_id' into 'develop'
Add get_by_id to activity.ex See merge request pleroma/pleroma!695
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/activity.ex4
1 files changed, 4 insertions, 0 deletions
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