Add user timeline

This commit is contained in:
dtluna 2017-04-14 16:09:13 +03:00
commit 18cd04ade5
4 changed files with 46 additions and 18 deletions

View file

@ -60,6 +60,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
query
end
query = if opts["actor_id"] do
from activity in query,
where: fragment("? @> ?", activity.data, ^%{actor: opts["actor_id"]})
else
query
end
Repo.all(query)
|> Enum.reverse
end