mirror of
https://github.com/neocities/neocities.git
synced 2025-07-22 18:46:07 +02:00
more strict integer checks
This commit is contained in:
parent
1d87b87e62
commit
f7e65ec61b
10 changed files with 30 additions and 21 deletions
|
@ -1350,7 +1350,7 @@ class Site < Sequel::Model
|
|||
site_id = self.id
|
||||
Event.news_feed_default_dataset.where{Sequel.|({site_id: site_id}, {actioning_site_id: site_id})}.
|
||||
order(:created_at.desc).
|
||||
paginate(current_page, limit)
|
||||
paginate(current_page.to_i, limit.to_i)
|
||||
end
|
||||
|
||||
def news_feed(current_page=1, limit=10)
|
||||
|
@ -1359,7 +1359,7 @@ class Site < Sequel::Model
|
|||
|
||||
Event.news_feed_default_dataset.where{Sequel.|({site_id: search_ids}, {actioning_site_id: search_ids})}.
|
||||
order(:created_at.desc).
|
||||
paginate(current_page, limit)
|
||||
paginate(current_page.to_i, limit.to_i)
|
||||
end
|
||||
|
||||
def newest_follows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue