Turning off media instance

main
Bob Mottram 2019-11-28 17:21:38 +00:00
parent 1dd88c78e6
commit 0dd80a8438
1 changed files with 8 additions and 1 deletions

View File

@ -4134,7 +4134,14 @@ class PubServer(BaseHTTPRequestHandler):
if fields['mediaInstance']=='on':
self.server.mediaInstance=True
self.server.defaultTimeline='tlmedia'
setConfigParam(self.server.baseDir,"mediaInstance",self.server.mediaInstance)
setConfigParam(self.server.baseDir,"mediaInstance", \
self.server.mediaInstance)
else:
if self.server.mediaInstance:
self.server.mediaInstance=False
self.server.defaultTimeline='inbox'
setConfigParam(self.server.baseDir,"mediaInstance", \
self.server.mediaInstance)
# only receive DMs from accounts you follow
followDMsFilename= \
self.server.baseDir+'/accounts/'+ \