Skip to content

Commit 5f837ce

Browse files
committed
fix: correct indentation and remove trailing whitespace in stage.py
1 parent 4d92ac1 commit 5f837ce

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

  • astrbot/core/pipeline/result_decorate

astrbot/core/pipeline/result_decorate/stage.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -400,17 +400,17 @@ async def process(
400400
)
401401
if len(result.chain) > 1 and isinstance(result.chain[1], Plain):
402402
result.chain[1].text = "\n" + result.chain[1].text
403-
404-
# 引用回复
405-
if self.reply_with_quote:
406-
is_private = event.get_message_type() == MessageType.FRIEND_MESSAGE
407-
should_quote = (
408-
self.reply_with_quote_scope == "all"
409-
or (self.reply_with_quote_scope == "private_only" and is_private)
410-
or (self.reply_with_quote_scope == "group_only" and not is_private)
411-
)
412-
if should_quote and not any(
413-
isinstance(item, File) for item in result.chain
414-
):
415-
result.chain.insert(0, Reply(id=event.message_obj.message_id))
403+
404+
# 引用回复
405+
if self.reply_with_quote:
406+
is_private = event.get_message_type() == MessageType.FRIEND_MESSAGE
407+
should_quote = (
408+
self.reply_with_quote_scope == "all"
409+
or (self.reply_with_quote_scope == "private_only" and is_private)
410+
or (self.reply_with_quote_scope == "group_only" and not is_private)
411+
)
412+
if should_quote and not any(
413+
isinstance(item, File) for item in result.chain
414+
):
415+
result.chain.insert(0, Reply(id=event.message_obj.message_id))
416416

0 commit comments

Comments
 (0)