mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Add quick support for an announcement message in the .ini.
This commit is contained in:
@@ -153,8 +153,11 @@ class Reddit(Templated):
|
||||
elif (c.firsttime == 'mobile_suggest' and
|
||||
c.render_style != 'compact'):
|
||||
infotext = strings.iphone_first
|
||||
elif g.announcement_message:
|
||||
infotext = g.announcement_message
|
||||
elif c.firsttime and c.site.firsttext:
|
||||
infotext = c.site.firsttext
|
||||
|
||||
if infotext:
|
||||
self.infobar = InfoBar(message = infotext)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user