Allow activities pagination via limit/offset
This commit is contained in:
parent
29dd8ab9c0
commit
60cbea5bb2
4 changed files with 32 additions and 7 deletions
|
|
@ -64,6 +64,7 @@ defmodule Pleroma.Pagination do
|
|||
|
||||
def paginate(query, options, :offset) do
|
||||
query
|
||||
|> restrict(:order, options)
|
||||
|> restrict(:offset, options)
|
||||
|> restrict(:limit, options)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue