Commit 7124f12a authored by Hakaba Hitoyo's avatar Hakaba Hitoyo

introduce max_id parameter in feed.atom (debug)

parent 9c61f605
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment