mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Destale c.site on subreddit settings page.
This should fix funkiness with changed settings getting "lost" after the redirect/refresh catches a stale-cached version of the settings.
This commit is contained in:
@@ -541,6 +541,7 @@ class FrontController(RedditController):
|
||||
if created == 'true':
|
||||
pane.append(InfoBar(message = strings.sr_created))
|
||||
c.allow_styles = True
|
||||
c.site = Subreddit._byID(c.site._id, data=True, stale=False)
|
||||
pane.append(CreateSubreddit(site = c.site))
|
||||
elif location == 'moderators':
|
||||
pane = ModList(editable = is_moderator)
|
||||
|
||||
Reference in New Issue
Block a user