Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Use stale subreddit lookup for saved subreddits
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 committed Dec 8, 2016
1 parent 0d0e414 commit db3bb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/controllers/listingcontroller.py
Expand Up @@ -774,7 +774,7 @@ def menus(self):
if self.where == 'saved' and c.user.gold:
srnames = LinkSavesBySubreddit.get_saved_subreddits(self.vuser)
srnames += CommentSavesBySubreddit.get_saved_subreddits(self.vuser)
srs = Subreddit._by_name(srnames)
srs = Subreddit._by_name(set(srnames), stale=True)
srnames = [name for name, sr in srs.iteritems()
if sr.can_view(c.user)]
srnames = sorted(set(srnames), key=lambda name: name.lower())
Expand Down

0 comments on commit db3bb27

Please sign in to comment.