Fixed mastodon checkbox on new entry page
This commit is contained in:
@@ -390,6 +390,8 @@ def get_user_plugin_config(plugin_name: str, user: dict = Depends(get_current_us
|
||||
return {}
|
||||
|
||||
config = json.loads(row['config']) if row['config'] else {}
|
||||
if plugin_name == 'mastodon':
|
||||
config['configured'] = bool(config.get('instance') and config.get('access_token'))
|
||||
if config.get('access_token'):
|
||||
config.pop('access_token')
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user