From 19448b3cad596231f60aa3e650d7bd2506a70ecf Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 02:30:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- api/services/workflow_comment_service.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/services/workflow_comment_service.py b/api/services/workflow_comment_service.py index 6ddca884077..bc31efcc2cd 100644 --- a/api/services/workflow_comment_service.py +++ b/api/services/workflow_comment_service.py @@ -73,9 +73,7 @@ class WorkflowCommentService: app_name = app_name_value if isinstance(app_name_value, str) and app_name_value else "Dify app" commenter_name_value = session.scalar(select(Account.name).where(Account.id == mentioner_id)) commenter_name = ( - commenter_name_value - if isinstance(commenter_name_value, str) and commenter_name_value - else "Dify user" + commenter_name_value if isinstance(commenter_name_value, str) and commenter_name_value else "Dify user" ) comment_excerpt = WorkflowCommentService._format_comment_excerpt(content) @@ -381,9 +379,7 @@ class WorkflowCommentService: mentioned_user_ids = WorkflowCommentService._filter_valid_mentioned_user_ids(mentioned_user_ids or []) for user_id in mentioned_user_ids: # Create mention linking to specific reply - mention = WorkflowCommentMention( - comment_id=comment_id, reply_id=reply.id, mentioned_user_id=user_id - ) + mention = WorkflowCommentMention(comment_id=comment_id, reply_id=reply.id, mentioned_user_id=user_id) session.add(mention) mention_email_payloads = WorkflowCommentService._build_mention_email_payloads(