@rmdes/indiekit-syndicator-bluesky 1.0.20 → 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.
Files changed (2) hide show
  1. package/lib/bluesky.js +5 -8
  2. package/package.json +1 -1
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 inReplyTo = properties["in-reply-to"];
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
- try {
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.20",
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",