mirror of https://gitlab.com/bashrc2/epicyon
Turning off news instance
parent
9538f28757
commit
6017865bef
|
@ -2516,7 +2516,7 @@ def _profile_post_blog_instance_status(base_dir: str, fields: {},
|
||||||
self) -> None:
|
self) -> None:
|
||||||
""" HTTP POST blog instance status
|
""" HTTP POST blog instance status
|
||||||
"""
|
"""
|
||||||
if fields.get('blogsInstance'):
|
if 'blogsInstance' in fields:
|
||||||
self.server.blogs_instance = False
|
self.server.blogs_instance = False
|
||||||
self.server.default_timeline = 'inbox'
|
self.server.default_timeline = 'inbox'
|
||||||
if fields['blogsInstance'] == 'on':
|
if fields['blogsInstance'] == 'on':
|
||||||
|
@ -2542,7 +2542,7 @@ def _profile_post_news_instance_status(base_dir: str, fields: {},
|
||||||
self) -> None:
|
self) -> None:
|
||||||
""" HTTP POST change news instance status
|
""" HTTP POST change news instance status
|
||||||
"""
|
"""
|
||||||
if fields.get('newsInstance'):
|
if 'newsInstance' in fields:
|
||||||
self.server.news_instance = False
|
self.server.news_instance = False
|
||||||
self.server.default_timeline = 'inbox'
|
self.server.default_timeline = 'inbox'
|
||||||
if fields['newsInstance'] == 'on':
|
if fields['newsInstance'] == 'on':
|
||||||
|
@ -2568,7 +2568,7 @@ def _profile_post_media_instance_status(base_dir: str, fields: {},
|
||||||
self) -> None:
|
self) -> None:
|
||||||
""" HTTP POST change media instance status
|
""" HTTP POST change media instance status
|
||||||
"""
|
"""
|
||||||
if fields.get('mediaInstance'):
|
if 'mediaInstance' in fields:
|
||||||
self.server.media_instance = False
|
self.server.media_instance = False
|
||||||
self.server.default_timeline = 'inbox'
|
self.server.default_timeline = 'inbox'
|
||||||
if fields['mediaInstance'] == 'on':
|
if fields['mediaInstance'] == 'on':
|
||||||
|
|
Loading…
Reference in New Issue