mirror of
https://github.com/neocities/neocities.git
synced 2025-06-27 14:44:35 +02:00
more strict integer checks
This commit is contained in:
parent
1d87b87e62
commit
f7e65ec61b
10 changed files with 30 additions and 21 deletions
|
@ -50,7 +50,7 @@ class Event < Sequel::Model
|
|||
|
||||
def self.global_dataset(current_page=1, limit=DEFAULT_GLOBAL_LIMIT)
|
||||
news_feed_default_dataset.
|
||||
paginate(current_page, 100).
|
||||
paginate(current_page.to_i, 100).
|
||||
exclude(is_nsfw: true).
|
||||
exclude(is_crashing: true).
|
||||
where{views > GLOBAL_VIEWS_MINIMUM}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue