diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-01-22 14:28:17 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-01-22 14:28:17 +0000 |
commit | 707cd9389c4cebd5318fbd43527d2d3578310149 (patch) | |
tree | 74f1119baf8b807e8dad296a9cf1a1c340da6655 /lib | |
parent | 7d55bb0896dc8b4a424206b5be19cc6705fbdf2b (diff) | |
parent | e460820fcfcdc68c3e2a43ee69d587ca261324f8 (diff) | |
download | pleroma-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.ex | 4 |
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 |