diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index 71a9b0ac4..a3ac15885 100755 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -638,7 +638,6 @@ class UserController(ListingController): return Reddit(content = Wrapped(vuser)).render() class MessageController(ListingController): - show_sidebar = False show_nums = False render_cls = MessagePage allow_stylesheets = False @@ -646,6 +645,13 @@ class MessageController(ListingController): # conceptually fit for styling these pages. extra_page_classes = ['messages-page'] + @property + def show_sidebar(self): + if c.default_sr and not isinstance(c.site, (ModSR, MultiReddit)): + return False + + return self.where in ("moderator", "multi") + @property def menus(self): if c.default_sr and self.where in ('inbox', 'messages', 'comments',