Add get_by_id to activity.ex
authorrinpatch <rinpatch@sdf.org>
Tue, 22 Jan 2019 07:54:11 +0000 (10:54 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 22 Jan 2019 07:55:10 +0000 (10:55 +0300)
lib/pleroma/activity.ex

index 353f9f6cd7722d915369218576540e77c2efc89e..8fd0311d2c25a78fd1259c58e17acbbff64c90bc 100644 (file)
@@ -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