projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd853c
)
Add get_by_id to activity.ex
author
rinpatch
<rinpatch@sdf.org>
Tue, 22 Jan 2019 07:54:11 +0000
(10:54 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Tue, 22 Jan 2019 07:55:10 +0000
(10:55 +0300)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index 353f9f6cd7722d915369218576540e77c2efc89e..8fd0311d2c25a78fd1259c58e17acbbff64c90bc 100644
(file)
--- 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