Add get_by_id to activity.ex

This commit is contained in:
rinpatch 2019-01-22 10:54:11 +03:00
parent 8cd853ce0c
commit e460820fcf

View 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