From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.209]) by gnuweeb.org (Postfix) with ESMTPSA id 1285D8194D; Mon, 19 Dec 2022 23:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1671493979; bh=kr57+uhR9vtFLeTa51fTNzVzWUXHa6ZEsotfP+Lt2Vk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMPD/Nz7DFDlMdmN6WNI7qKnu0ZKVaubLnGh0rAZ9Zj2eBUPuaIqy9hrIYACnqN87 SapGSnNZ0IFrIyaJkW767r1aJM3oPYkjHaseHW6sSecNeaZnFyOCwVDAAmrsYlsqT1 JSKFgF8H1QAkTGJsPB28b6J98blGSyNxzmy0RBwmYQ51k+V1s1vDMjnG4GX+SpXE2B C5AcX10WPppqIA4mP1udqewkQZ4T0q1R9mSZ7j5lERjiUR5XzL9fXa8i59AUlaNw2T wWbyo7W5XYXldd6iGAlU/qAtJ52u6Y3jM11IsjFaFOlu7ScIf8sG09ncCQPuAwwSJ3 KeYu6r0P3v/yQ== From: Muhammad Rizki To: Cc: Muhammad Rizki , Alviro Iskandar Setiawan , Ammar Faizi , GNU/Weeb Mailing List Subject: [PATCH 06/28] telegram: Fix get lore command Date: Tue, 20 Dec 2022 06:52:04 +0700 Message-Id: <20221219235226.1567-6-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221219235226.1567-1-kiizuha@gnuweeb.org> References: <20221219235226.1567-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Fix the `/lore {raw lore url}` to add "telegram" on the create_template() platform parameter. Signed-off-by: Muhammad Rizki Link: https://lore.gnuweeb.org/gwml/20221022065149.865-7-kiizuha@gnuweeb.org Cc: Alviro Iskandar Setiawan Cc: Ammar Faizi Cc: GNU/Weeb Mailing List Signed-off-by: Ammar Faizi --- daemon/telegram/packages/plugins/commands/scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/telegram/packages/plugins/commands/scrape.py b/daemon/telegram/packages/plugins/commands/scrape.py index 52ddb0b..860e993 100644 --- a/daemon/telegram/packages/plugins/commands/scrape.py +++ b/daemon/telegram/packages/plugins/commands/scrape.py @@ -37,7 +37,7 @@ async def scrap_email(c: DaemonClient, m: Message): s = Scraper() mail = await s.get_email_from_url(url) - text, files, is_patch = utils.create_template(mail) + text, files, is_patch = utils.create_template(mail, "telegram") if is_patch: m = await c.send_patch_email( -- 2.34.1.windows.1