mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Move sample multis list to live config.
This commit is contained in:
@@ -528,9 +528,6 @@ wiki_page_registration_info = registration_info
|
||||
# Template names to record render timings for
|
||||
timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
|
||||
|
||||
# sample multireddits (displayed when a user has no multis)
|
||||
sample_multis = /user/reddit/m/hello, /user/reddit/m/world
|
||||
|
||||
# employees that aren't admins or sponsors (Free gilding, admin distinguish, traffic viewing, etc.)
|
||||
employees =
|
||||
|
||||
@@ -611,3 +608,5 @@ comment_tree_version_weights = 1:1, 2:0
|
||||
# use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
|
||||
goldvertisement_blurbs = "Make reddit better. Try %(reddit_gold)." "This year, give the gift of %(reddit_gold)s.|(and you should probably also give some other, better gifts)"
|
||||
goldvertisement_has_gold_blurbs = "**“Exquisite!”** \nGrab a drink and join us in [the lounge](/r/lounge)."
|
||||
# sample multireddits (displayed when a user has no multis)
|
||||
listing_chooser_sample_multis = /user/reddit/m/hello, /user/reddit/m/world
|
||||
|
||||
@@ -227,6 +227,7 @@ class Globals(object):
|
||||
ConfigValue.tuple: [
|
||||
'sr_discovery_links',
|
||||
'fastlane_links',
|
||||
'listing_chooser_sample_multis',
|
||||
],
|
||||
ConfigValue.dict(ConfigValue.int, ConfigValue.float): [
|
||||
'comment_tree_version_weights',
|
||||
|
||||
@@ -4152,7 +4152,7 @@ class ListingChooser(Templated):
|
||||
})
|
||||
|
||||
def add_samples(self):
|
||||
for path in g.sample_multis:
|
||||
for path in g.live_config["listing_chooser_sample_multis"]:
|
||||
self.add_item(
|
||||
section="sample",
|
||||
name=path.rpartition('/')[2],
|
||||
|
||||
Reference in New Issue
Block a user