From 43ef0604176ff810d2272001c36e439cfff5c8b2 Mon Sep 17 00:00:00 2001 From: spez Date: Tue, 30 Sep 2008 10:34:29 -0700 Subject: [PATCH] fix stale html bug --- r2/r2/controllers/reddit_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/reddit_base.py b/r2/r2/controllers/reddit_base.py index 8415ccc5d..36d49b872 100644 --- a/r2/r2/controllers/reddit_base.py +++ b/r2/r2/controllers/reddit_base.py @@ -217,7 +217,9 @@ def set_subreddit(): sr_name = request.environ.get("subreddit", request.POST.get('r')) domain = request.environ.get("domain") - if not sr_name: + #we can get rid of the sr_name == Default.name constraint if + #you're reading this. it was there to fix a stale html issue. + if not sr_name or sr_name == Default.name: #check for cnames sub_domain = request.environ.get('sub_domain') sr = Subreddit._by_domain(sub_domain) if sub_domain else None