Skip to content

Commit

Permalink
fix: 快速审批通知发送失败 (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmcowen authored Dec 12, 2024
1 parent d979bd4 commit b3e7138
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion itsm/meta/services/notice_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ def notice_receiver_filter(receivers):
if not receivers:
return receivers

receiver_type = "list"
if isinstance(receivers, str):
receiver_type = "str"
receivers = receivers.strip().split(",")

notice_blacklist = ContextService.get_context_value_list("notice_blacklist")
filtered_receivers = [i for i in receivers if i not in notice_blacklist]
return (
filtered_receivers
if isinstance(receivers, list)
if receiver_type == "list"
else ",".join(filtered_receivers)
)

Expand Down

0 comments on commit b3e7138

Please sign in to comment.