Add user timeline
This commit is contained in:
parent
443381d0a0
commit
18cd04ade5
4 changed files with 46 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue