@rmdes/indiekit-syndicator-bluesky 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bluesky.js +5 -8
- package/package.json +3 -3
package/lib/bluesky.js
CHANGED
|
@@ -467,17 +467,14 @@ export class Bluesky {
|
|
|
467
467
|
|
|
468
468
|
// Resolve reply threading if in-reply-to is a Bluesky URL
|
|
469
469
|
let reply = null;
|
|
470
|
-
const
|
|
470
|
+
const inReplyToRaw = properties["in-reply-to"];
|
|
471
|
+
const inReplyTo = Array.isArray(inReplyToRaw)
|
|
472
|
+
? inReplyToRaw[0]
|
|
473
|
+
: inReplyToRaw;
|
|
471
474
|
if (inReplyTo && typeof inReplyTo === "string") {
|
|
472
475
|
const lower = inReplyTo.toLowerCase();
|
|
473
476
|
if (lower.includes("bsky.app") || lower.includes("bluesky")) {
|
|
474
|
-
|
|
475
|
-
reply = await this.resolveReplyRef(inReplyTo);
|
|
476
|
-
} catch (error) {
|
|
477
|
-
console.error(
|
|
478
|
-
`[Bluesky] Failed to resolve reply ref: ${error.message}`,
|
|
479
|
-
);
|
|
480
|
-
}
|
|
477
|
+
reply = await this.resolveReplyRef(inReplyTo);
|
|
481
478
|
}
|
|
482
479
|
}
|
|
483
480
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-syndicator-bluesky",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "Bluesky syndicator for Indiekit with external like support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"url": "https://github.com/rmdes/indiekit-syndicator-bluesky"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atproto/api": "^0.
|
|
26
|
+
"@atproto/api": "^0.19.3",
|
|
27
27
|
"html-to-text": "^9.0.0",
|
|
28
28
|
"jsdom": "^24.0.0",
|
|
29
29
|
"sharp": "^0.33.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@indiekit/indiekit": "1.x",
|
|
33
|
-
"@indiekit/error": "^1.0.0-beta.
|
|
33
|
+
"@indiekit/error": "^1.0.0-beta.27",
|
|
34
34
|
"@indiekit/util": "^1.0.0-beta.25"
|
|
35
35
|
}
|
|
36
36
|
}
|