diff options
author | Hakaba Hitoyo <example@example.com> | 2018-02-09 21:46:05 +0900 |
---|---|---|
committer | Hakaba Hitoyo <example@example.com> | 2018-02-09 21:46:05 +0900 |
commit | 7124f12a94478206f600b93055e0a82b945de858 (patch) | |
tree | 8b1a4f1570343d4ab95cc1424b0896dca821155e /lib | |
parent | 9c61f605582520368d61a31e562710f383fab9c1 (diff) | |
download | pleroma-7124f12a94478206f600b93055e0a82b945de858.tar.gz |
introduce max_id parameter in feed.atom (debug)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/ostatus/ostatus_controller.ex | 4 |
1 files 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 |