Skip to content

Commit

Permalink
🐛 middleware(obv11): node.type
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi committed Aug 19, 2024
1 parent 102162f commit 196e29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_all4one/middlewares/onebot_v11.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def to_onebot_message(self, message: Message) -> OneBotMessage:
resp = await self.bot.get_forward_msg(id=segment.data["id"])
nodes = []
for node in resp["message"]:
if node.type == "forward":
if node["type"] == "forward":
continue
nodes.append(
{
Expand Down

0 comments on commit 196e29c

Please sign in to comment.