mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Listings: use default limit if no pref_numsites
Currently if the user's pref_numsites value is None (very old accounts that have not changed their preferences), listing pages return all items, and any hot listings with a sticky crash. This uses the default page size if the user has not set their own default.
This commit is contained in:
@@ -487,7 +487,7 @@ class VLimit(Validator):
|
||||
|
||||
def run(self, limit):
|
||||
default = c.user.pref_numsites
|
||||
if c.render_style in ("compact", api_type("compact")):
|
||||
if not default or c.render_style in ("compact", api_type("compact")):
|
||||
default = self.default_limit # TODO: ini param?
|
||||
|
||||
if limit is None:
|
||||
|
||||
Reference in New Issue
Block a user