Topic: was the max number of posts per page changed ?

Posted under General

Esme_Belles said:
You can change it in your settings page on your account.

You can, but it only goes up to 150. It actually says in the settings now, "Posts per page. How many posts to show on each page in the post index. Default is 75. Max is 150" right next to the setting. Mine is set at 160, so I'm guessing that it used to be higher than 150 at some point, but I have no idea when it changed or why.

I was kinda curious to see if an admin or someone might post a reply with more knowledge about it.

Updated by anonymous

Oh wow, it's true! Mine's at 160 too. Wonder why they lowered...

Updated by anonymous

spight

Former Staff

Fox'd. Made it a configurable option in our code and everything. If you find any places where the de facto or de jure limit isn't 320, let me know so I can update it.

Updated by anonymous

spight said:
Fox'd. Made it a configurable option in our code and everything. If you find any places where the de facto or de jure limit isn't 320, let me know so I can update it.

It probably works, but now I can't save any changes to my settings page without getting this error:

ArgumentError in UserController#update
comparison of Fixnum with nil failed
RAILS_ROOT: /home/e621/e621-production/release-2014-06-08

Application Trace | Framework Trace | Full Trace
/home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:38:in >' /home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:38:in sanitize_per_page'
/home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:13:in send' /home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:13:in sanitize_fields'
/home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:12:in each' /home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:12:in sanitize_fields'
/home/e621/e621-production/release-2014-06-08/app/controllers/user_controller.rb:299:in update' [/section] etc etc. So I can't actually try it to see.

Updated by anonymous

spight

Former Staff

furrypickle said:
It probably works, but now I can't save any changes to my settings page without getting this:

ArgumentError in UserController#update
comparison of Fixnum with nil failed
RAILS_ROOT: /home/e621/e621-production/release-2014-06-08

Application Trace | Framework Trace | Full Trace
/home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:38:in >' /home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:38:in sanitize_per_page'
/home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:13:in send' /home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:13:in sanitize_fields'
/home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:12:in each' /home/e621/e621-production/release-2014-06-08/app/models/user/validation.rb:12:in sanitize_fields'
/home/e621/e621-production/release-2014-06-08/app/controllers/user_controller.rb:299:in update' [/section] etc etc [/quote] Neat. poking

Updated by anonymous

spight said:
Ok. Round 2. Fight.

Success!

Seems to work great. I changed mine from 160 to 300, it saved without any problems. Went to the main page of newest posts, and (while I'm not going to count it) it looks like the page is long enough/ full of enough thumbnails. I think you fixed it.

Code Problems: 0 Spight: 2
Spight wins!
*victory trumpets*

Updated by anonymous

spight

Former Staff

furrypickle said:
Success!

Seems to work great. I changed mine from 160 to 300, it saved without any problems. Went to the main page of newest posts, and (while I'm not going to count it) it looks like the page is long enough/ full of enough thumbnails. I think you fixed it.

Code Problems: 0 Spight: 2
Spight wins!
*victory trumpets*

I'll upload a hype video of my Makoto using her Astral on code later or something.

Updated by anonymous

Genjar

Former Staff

furrypickle said:
Mine is set at 160, so I'm guessing that it used to be higher than 150 at some point, but I have no idea when it changed or why.

It had been capped at 150 for a long time.
I've had mine set to 300 for six months or so, but until now, it has never showed more than 150 at once.

Thanks for raising the limit, that'll make tag scripting easier.

Updated by anonymous

spight

Former Staff

Genjar said:
It had been capped at 150 for a long time.
I've had mine set to 300 for six months or so, but until now, it has never showed more than 150 at once.

Thanks for raising the limit, that'll make tag scripting easier.

It'll also probably make our server hate life more, but... so be it.

Edit: http://www.dailywritingtips.com/sobeit-and-so-be-it/

Updated by anonymous

  • 1