disappearing interface after link safe
This commit is contained in:
@@ -76,7 +76,12 @@ def create_link_endpoint(payload: LinkCreate, response: Response, authorization:
|
||||
mark_mastodon_posted(record['id'], info['user_id'], mastodon_result.get('post_id'))
|
||||
if any(result.get('status') == 'failed' for result in plugin_results):
|
||||
logger.warning('One or more plugins failed for link_id=%s results=%s', record['id'], plugin_results)
|
||||
return {**record, 'duplicate': duplicate}
|
||||
plugin_errors = [
|
||||
{'plugin': result.get('plugin', 'unknown'), 'reason': result.get('reason', 'Plugin failed')}
|
||||
for result in plugin_results
|
||||
if result.get('status') == 'failed'
|
||||
]
|
||||
return {**record, 'duplicate': duplicate, 'plugin_errors': plugin_errors}
|
||||
|
||||
|
||||
@router.put('/links/{link_id}')
|
||||
|
||||
Reference in New Issue
Block a user