mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🔍 Change post admin notice domain to self-hosted
This commit is contained in:
parent
bacaecfd27
commit
9e6d29c785
@ -1 +1 @@
|
||||
Subproject commit 968b3fd52d699c65648ecab22b3c7ab1f2d32d52
|
||||
Subproject commit 3057fba7a6e84be60ece1ab98e6cd012aba37e78
|
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user