From 09a0f91ae967f9cc82f9372c2ceb12c92faf1f74 Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Mon, 4 Feb 2013 17:53:20 -0500 Subject: [PATCH] Loggedout users always get a promoted link in the spotlight. --- r2/r2/controllers/listingcontroller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index af31f0411..b8cc3350a 100755 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -335,11 +335,13 @@ class HotController(FixListing, ListingController): if has_subscribed else 'spotlight_interest_nosub_p'] interestbar = InterestBar(has_subscribed) + promotion_prob = 0.5 if c.user_is_loggedin else 1. s = SpotlightListing(organic_links=organic_links, promoted_links=promoted_links, interestbar=interestbar, interestbar_prob=interestbar_prob, + promotion_prob=promotion_prob, max_num = self.listing_obj.max_num, max_score = self.listing_obj.max_score).listing() return s