🔍 Change post admin notice domain to self-hosted

This commit is contained in:
xtaodada 2024-03-20 21:17:59 +08:00
parent bacaecfd27
commit 9e6d29c785
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 968b3fd52d699c65648ecab22b3c7ab1f2d32d52
Subproject commit 3057fba7a6e84be60ece1ab98e6cd012aba37e78

View File

@ -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<article_id>\d+)")
rgx = re.compile(r"(?:bbs|www\.)?(?:miyoushe|mihoyo)\.(.*)/[^.]+/article/(?P<article_id>\d+)")
matches = rgx.search(text)
if matches is None:
return -1

View File

@ -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"发现官网推荐文章 <a href='{url}'>{post_info.subject}</a>\n是否开始处理"
try:
await context.bot.send_message(