From 2270085d1672f23d5db3870196485ba11f501221 Mon Sep 17 00:00:00 2001 From: Andre D Date: Thu, 18 Oct 2012 14:18:01 -0500 Subject: [PATCH] subreddit: Change logic for detecting a wiki friend page action. --- r2/r2/controllers/front.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/front.py b/r2/r2/controllers/front.py index 114c6f046..bd7c4c17e 100755 --- a/r2/r2/controllers/front.py +++ b/r2/r2/controllers/front.py @@ -642,8 +642,10 @@ class FrontController(RedditController, OAuth2ResourceController): else: return self.abort404() + is_wiki_action = location in ['wikibanned', 'wikicontributors'] + return EditReddit(content=pane, - show_wiki_actions='wiki' in location, + show_wiki_actions=is_wiki_action, location=location, extension_handling=extension_handling).render()