subreddit: Change logic for detecting a wiki friend page action.

This commit is contained in:
Andre D
2012-10-18 14:18:01 -05:00
committed by Neil Williams
parent 2dfa7d1971
commit 2270085d16

View File

@@ -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()