projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c61f60
)
introduce max_id parameter in feed.atom (debug)
author
Hakaba Hitoyo
<example@example.com>
Fri, 9 Feb 2018 12:46:05 +0000
(21:46 +0900)
committer
Hakaba Hitoyo
<example@example.com>
Fri, 9 Feb 2018 12:46:05 +0000
(21:46 +0900)
lib/pleroma/web/ostatus/ostatus_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/ostatus/ostatus_controller.ex
b/lib/pleroma/web/ostatus/ostatus_controller.ex
index 203b6e9852029aa465d0d2a429fea0ad1c29d3ab..4d48c5d2b9c5550bf13079fccd46892f5d483b3b 100644
(file)
--- 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