mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-22 21:38:11 -05:00
Subreddit._by_name: always allow stalecache when retrieving names->ids.
Subreddit names never change. The subsequent Subreddit._byID will continue to respect the supplied `stale` kwarg.
This commit is contained in:
@@ -336,7 +336,7 @@ class Subreddit(Thing, Printable, BaseSite):
|
||||
for sr in srs)
|
||||
|
||||
srs = {}
|
||||
srids = sgm(g.cache, to_fetch.keys(), _fetch, prefix='subreddit.byname', stale=stale)
|
||||
srids = sgm(g.cache, to_fetch.keys(), _fetch, prefix='subreddit.byname', stale=True)
|
||||
if srids:
|
||||
srs = cls._byID(srids.values(), data=True, return_dict=False, stale=stale)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user