fix: During the conversation, there is sensitive data in the application profile obtained by the application (#3018)

This commit is contained in:
shaohuzhang1 2025-04-29 13:40:15 +08:00 committed by GitHub
parent b37cc3ba1c
commit 59ee0c1270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1012,7 +1012,8 @@ class ApplicationSerializer(serializers.Serializer):
'stt_autosend': application.stt_autosend,
'file_upload_enable': application.file_upload_enable,
'file_upload_setting': application.file_upload_setting,
'work_flow': application.work_flow,
'work_flow': {'nodes': [node for node in application.work_flow.get('nodes') if
node.get('id') == 'base-node']},
'show_source': application_access_token.show_source,
'language': application_access_token.language,
**application_setting_dict})