From a74f609eeeafe85b5168f2261ed9ce16b5ddced6 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Fri, 14 Dec 2012 13:08:09 -0800 Subject: [PATCH] /comments/gilded: Set c.profilepage = True for "in subreddit" etc. --- r2/r2/controllers/listingcontroller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index bcd2bf34e..13c2a9d49 100755 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -1055,3 +1055,7 @@ class GildedController(ListingController): def query(self): return queries.get_gilded_comments() + + def GET_listing(self, **env): + c.profilepage = True + return ListingController.GET_listing(self, **env)