From 0d36a1ee88fb7aedf5b33af7ac95140b002c5a64 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 1 Dec 2025 16:50:39 +0500 Subject: feat: rss timeout --- luamods/telegram.lua | 4 ++-- luamods/twitter.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'luamods') diff --git a/luamods/telegram.lua b/luamods/telegram.lua index 760b0a5..220e414 100644 --- a/luamods/telegram.lua +++ b/luamods/telegram.lua @@ -37,7 +37,7 @@ Get the latest post from the specified public Telegram channel. minimal_rights = "user", handle = function(request) local cfg = bot_config() - if cfg.url.rssbridge == nil then + if cfg.rss.bridge == nil then return l10n_custom_formatted_line_request(request, lines, "not_configured", {}) end @@ -45,7 +45,7 @@ Get the latest post from the specified public Telegram channel. return l10n_custom_formatted_line_request(request, lines, "no_value", {}) end - local url = str_format(cfg.url.rssbridge, { "TelegramBridge", request.message }) + local url = str_format(cfg.rss.bridge, { "TelegramBridge", request.message }) local channel = rss_get(url) if channel == nil then return l10n_custom_formatted_line_request(request, lines, "not_found", { request.message }) diff --git a/luamods/twitter.lua b/luamods/twitter.lua index da71500..aaacd5f 100644 --- a/luamods/twitter.lua +++ b/luamods/twitter.lua @@ -38,7 +38,7 @@ Get the latest post from the specified Twitter account. minimal_rights = "user", handle = function(request) local cfg = bot_config() - if cfg.url.rssbridge == nil then + if cfg.rss.bridge == nil then return l10n_custom_formatted_line_request(request, lines, "not_configured", {}) end @@ -46,7 +46,7 @@ Get the latest post from the specified Twitter account. return l10n_custom_formatted_line_request(request, lines, "no_value", {}) end - local url = str_format(cfg.url.rssbridge, { "FarsideNitterBridge", request.message }) + local url = str_format(cfg.rss.bridge, { "FarsideNitterBridge", request.message }) local channel = rss_get(url) if channel == nil then return l10n_custom_formatted_line_request(request, lines, "not_found", { request.message }) -- cgit v1.2.3