From 7124f12a94478206f600b93055e0a82b945de858 Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Fri, 9 Feb 2018 21:46:05 +0900 Subject: [PATCH] introduce max_id parameter in feed.atom (debug) --- lib/pleroma/web/ostatus/ostatus_controller.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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