Clacks can exist in the config file

merge-requests/30/head
Bob Mottram 2022-07-25 13:49:20 +01:00
parent effce8c2ed
commit eee7dd03f0
1 changed files with 6 additions and 3 deletions

View File

@ -21113,9 +21113,12 @@ def run_daemon(clacks: str,
# caches css files
httpd.css_cache = {}
httpd.clacks = 'GNU Natalie Nguyen'
if clacks:
httpd.clacks = clacks
httpd.clacks = get_config_param(base_dir, 'clacks')
if not httpd.clacks:
if clacks:
httpd.clacks = clacks
else:
httpd.clacks = 'GNU Natalie Nguyen'
# load a list of dogwhistle words
dogwhistles_filename = base_dir + '/accounts/dogwhistles.txt'