@rmdes/indiekit-endpoint-syndicate 1.0.0-beta.35 → 1.0.0-beta.36

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.
@@ -34,8 +34,10 @@ const syndicatePost = async ({
34
34
  }) => {
35
35
  // Readiness gate: verify post and OG image are live before syndicating.
36
36
  // Skip check in force mode (manual re-syndication from UI/backlog script).
37
- if (!force && publication.me && postData.properties?.url) {
38
- const readiness = await isPostReady(postData.properties.url, publication.me);
37
+ const meUrl = typeof publication.me === "string" ? publication.me : publication.me?.href || publication.me?.toString?.() || "";
38
+ if (!force && meUrl && postData.properties?.url) {
39
+ console.log(`[syndication] Readiness gate: checking ${postData.properties.url} (me=${meUrl})`);
40
+ const readiness = await isPostReady(postData.properties.url, meUrl);
39
41
  if (!readiness.ready) {
40
42
  console.log(
41
43
  `[syndication] Skipping ${postData.properties.url} — not yet built ` +
package/lib/utils.js CHANGED
@@ -267,7 +267,7 @@ export async function isPostReady(postUrl, me) {
267
267
  const timeoutId = setTimeout(() => controller.abort(), 5000);
268
268
  const response = await fetch(url, {
269
269
  method: "HEAD",
270
- redirect: "manual",
270
+ redirect: "follow",
271
271
  signal: controller.signal,
272
272
  });
273
273
  clearTimeout(timeoutId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-syndicate",
3
- "version": "1.0.0-beta.35",
3
+ "version": "1.0.0-beta.36",
4
4
  "description": "Syndication endpoint for Indiekit. Fork of @indiekit/endpoint-syndicate with batch syndication support and bug fixes.",
5
5
  "keywords": [
6
6
  "indiekit",