aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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