mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 01:25:36 +00:00
Fix timeline pagination (#8827)
Ruby's ** operator does not play well with non-Hash objects, which the params slice is Fix #8821
This commit is contained in:
parent
e09301f414
commit
6c835085a3
|
@ -20,7 +20,7 @@ module Paginable
|
|||
query
|
||||
}
|
||||
|
||||
scope :paginate_by_id, ->(limit, **options) {
|
||||
scope :paginate_by_id, ->(limit, options = {}) {
|
||||
if options[:min_id].present?
|
||||
paginate_by_min_id(limit, options[:min_id]).reverse
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue