diff --git a/daemon.py b/daemon.py index 78897c3c..06630263 100644 --- a/daemon.py +++ b/daemon.py @@ -12090,6 +12090,16 @@ def runDaemon(showPublishedDateOnly: bool, print('Creating news inbox: news@' + domain) createNewsInbox(baseDir, domain, port, httpPrefix) + # set the avatar for the news account + themeName = getConfigParam(baseDir, 'theme') + if not themeName: + themeName = 'default' + setNewsAvatar(baseDir, + themeName, + httpPrefix, + domain, + httpd.domainFull) + if not os.path.isdir(baseDir + '/cache'): os.mkdir(baseDir + '/cache') if not os.path.isdir(baseDir + '/cache/actors'): diff --git a/epicyon.py b/epicyon.py index ffc432bd..775d6868 100644 --- a/epicyon.py +++ b/epicyon.py @@ -69,7 +69,6 @@ from shares import sendShareViaServer from shares import sendUndoShareViaServer from shares import addShare from theme import setTheme -from theme import setNewsAvatar from announce import sendAnnounceViaServer from socnet import instancesGraph import argparse @@ -1938,15 +1937,6 @@ if YTDomain: if setTheme(baseDir, themeName, domain): print('Theme set to ' + themeName) - domainFull = domain - if port != 80 and port != 443: - domainFull = domain + ':' + str(port) - setNewsAvatar(baseDir, - themeName, - httpPrefix, - domain, - domainFull) - if __name__ == "__main__": runDaemon(args.dateonly, args.votingtime,