[bluesky] default to /posts if reposts/quoted is enabled (#6583)

This commit is contained in:
Mike Fährmann
2024-12-13 22:19:46 +01:00
parent 85a37ca039
commit 94d7df186f
3 changed files with 17 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ __tests__ = (
"#class" : bluesky.BlueskyUserExtractor,
"#options" : {"include": "all"},
"#urls" : (
"https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/info",
"https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/avatar",
"https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/banner",
"https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/posts",
@@ -42,6 +43,13 @@ __tests__ = (
),
},
{
"#url" : "https://bsky.app/profile/bsky.app",
"#class" : bluesky.BlueskyUserExtractor,
"#options" : {"quoted": True},
"#urls" : "https://bsky.app/profile/bsky.app/posts",
},
{
"#url" : "https://bsky.app/profile/bsky.app/info",
"#class" : bluesky.BlueskyInfoExtractor,
@@ -357,7 +365,7 @@ __tests__ = (
"author": {
"createdAt": "2024-10-17T13:55:48.833Z",
"did" : "did:plc:7x6rtuenkuvxq3zsvffp2ide",
"handle" : "alt.bun.how",
"handle" : "cinny.bun.how",
"instance" : "bun.how",
},
},