From: Hakaba Hitoyo Date: Fri, 9 Feb 2018 12:46:05 +0000 (+0900) Subject: introduce max_id parameter in feed.atom (debug) X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7124f12a94478206f600b93055e0a82b945de858;p=akkoma introduce max_id parameter in feed.atom (debug) --- diff --git a/lib/pleroma/web/ostatus/ostatus_controller.ex b/lib/pleroma/web/ostatus/ostatus_controller.ex index 203b6e985..4d48c5d2b 100644 --- a/lib/pleroma/web/ostatus/ostatus_controller.ex +++ b/lib/pleroma/web/ostatus/ostatus_controller.ex @@ -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