forked from indymedia/epicyon
Set news avatar for theme
parent
d25be97de0
commit
fd86985a09
10
daemon.py
10
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'):
|
||||
|
|
10
epicyon.py
10
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,
|
||||
|
|
Loading…
Reference in New Issue