mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-17 23:38:19 +00:00
introduce max_id parameter in feed.atom (debug)
This commit is contained in:
parent
9c61f60558
commit
7124f12a94
|
@ -17,7 +17,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
end
|
||||
end
|
||||
|
||||
def feed(conn, %{"nickname" => nickname}) do
|
||||
def feed(conn, %{"nickname" => nickname} = params) do
|
||||
user = User.get_cached_by_nickname(nickname)
|
||||
query = from activity in Activity,
|
||||
where: fragment("?->>'actor' = ?", activity.data, ^user.ap_id),
|
||||
|
@ -25,7 +25,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
order_by: [desc: :id]
|
||||
|
||||
activities = query
|
||||
|> restrict_max(opts)
|
||||
|> restrict_max(params)
|
||||
|> Repo.all
|
||||
|
||||
response = user
|
||||
|
|
Loading…
Reference in a new issue