aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-01-22 10:54:11 +0300
committerrinpatch <rinpatch@sdf.org>2019-01-22 10:55:10 +0300
commite460820fcfcdc68c3e2a43ee69d587ca261324f8 (patch)
treebbe7ec8ebeccf65dc47cf6b78f67828afc7655fb /lib
parent8cd853ce0c2d67614dc2e0b07b4cf855a2a381d2 (diff)
downloadpleroma-e460820fcfcdc68c3e2a43ee69d587ca261324f8.tar.gz
Add get_by_id to activity.ex
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