From 3d3e8bf6a178a3bce137d6cc767f2144c870bbde Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 20 Mar 2024 21:17:59 +0800 Subject: [PATCH] :mag: Change post admin notice domain to self-hosted --- gram_core | 2 +- modules/apihelper/client/components/hyperion.py | 2 +- plugins/admin/post.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gram_core b/gram_core index 968b3fd5..3057fba7 160000 --- a/gram_core +++ b/gram_core @@ -1 +1 @@ -Subproject commit 968b3fd52d699c65648ecab22b3c7ab1f2d32d52 +Subproject commit 3057fba7a6e84be60ece1ab98e6cd012aba37e78 diff --git a/modules/apihelper/client/components/hyperion.py b/modules/apihelper/client/components/hyperion.py index cee6f50b..8f26e722 100644 --- a/modules/apihelper/client/components/hyperion.py +++ b/modules/apihelper/client/components/hyperion.py @@ -43,7 +43,7 @@ class Hyperion: # https://m.miyoushe.com/ys/#/article/32497914 :return: post_id """ - rgx = re.compile(r"(?:bbs|www\.)?(?:miyoushe|mihoyo)\.com/[^.]+/article/(?P\d+)") + rgx = re.compile(r"(?:bbs|www\.)?(?:miyoushe|mihoyo)\.(.*)/[^.]+/article/(?P\d+)") matches = rgx.search(text) if matches is None: return -1 diff --git a/plugins/admin/post.py b/plugins/admin/post.py index 652970f1..a07728eb 100644 --- a/plugins/admin/post.py +++ b/plugins/admin/post.py @@ -130,7 +130,7 @@ class Post(Plugin.Conversation): InlineKeyboardButton("取消", callback_data=f"post_admin|cancel|{post_info.post_id}"), ] ] - url = f"https://www.miyoushe.gay/{self.short_name}/article/{post_info.post_id}" + url = f"https://www.miyoushe.pp.ua/{self.short_name}/article/{post_info.post_id}" text = f"发现官网推荐文章 {post_info.subject}\n是否开始处理" try: await context.bot.send_message(