[bluesky] support 'main.bsky.dev' URLs (#4438)
This commit is contained in:
@@ -12,7 +12,7 @@ from .common import Extractor, Message
|
|||||||
from .. import text, util, exception
|
from .. import text, util, exception
|
||||||
from ..cache import cache, memcache
|
from ..cache import cache, memcache
|
||||||
|
|
||||||
BASE_PATTERN = r"(?:https?://)?bsky\.app"
|
BASE_PATTERN = r"(?:https?://)?(?:(?:www\.)?bsky\.app|main\.bsky\.dev)"
|
||||||
USER_PATTERN = BASE_PATTERN + r"/profile/([^/?#]+)"
|
USER_PATTERN = BASE_PATTERN + r"/profile/([^/?#]+)"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,16 @@ __tests__ = (
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://www.bsky.app/profile/bsky.app",
|
||||||
|
"#class" : bluesky.BlueskyUserExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://main.bsky.dev/profile/bsky.app",
|
||||||
|
"#class" : bluesky.BlueskyUserExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur",
|
"#url" : "https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur",
|
||||||
"#category": ("", "bluesky", "user"),
|
"#category": ("", "bluesky", "user"),
|
||||||
|
|||||||
Reference in New Issue
Block a user