Skip to content

Commit 4d92ac1

Browse files
authored
Update stage.py
修复排版问题3
1 parent 36d356e commit 4d92ac1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • astrbot/core/pipeline/result_decorate

astrbot/core/pipeline/result_decorate/stage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ async def initialize(self, ctx: PipelineContext) -> None:
3030
"reply_with_quote"
3131
]
3232
self.reply_with_quote_scope = ctx.astrbot_config["platform_settings"].get(
33-
"reply_with_quote_scope", "all"
33+
"reply_with_quote_scope",
34+
"all",
3435
)
3536
self.t2i_word_threshold = ctx.astrbot_config["t2i_word_threshold"]
3637
try:
@@ -411,6 +412,5 @@ async def process(
411412
if should_quote and not any(
412413
isinstance(item, File) for item in result.chain
413414
):
414-
result.chain.insert(
415-
0, Reply(id=event.message_obj.message_id)
416-
)
415+
result.chain.insert(0, Reply(id=event.message_obj.message_id))
416+

0 commit comments

Comments
 (0)