From 7c67097325f5fe4b4b703fed16ebafca7ca686dd Mon Sep 17 00:00:00 2001 From: mizgyo <10610247+mizgyo@users.noreply.github.com> Date: Tue, 12 May 2026 18:46:49 -0700 Subject: [PATCH] fix(line): use build_source instead of nonexistent create_source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The LINE adapter calls self.create_source(...) which raises AttributeError on every inbound message — no such method exists. The base PlatformAdapter exposes this factory as build_source(), consistent with the IRC and Teams adapters. Fixes #23728 --- plugins/platforms/line/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/platforms/line/adapter.py b/plugins/platforms/line/adapter.py index 67582ffae8d..db5d3564d32 100644 --- a/plugins/platforms/line/adapter.py +++ b/plugins/platforms/line/adapter.py @@ -959,7 +959,7 @@ class LineAdapter(BasePlatformAdapter): if chat_type == "dm" and self._client: asyncio.create_task(self._client.loading(chat_id)) - source_obj = self.create_source( + source_obj = self.build_source( chat_id=chat_id, chat_type=chat_type, user_id=user_id,