@rmdes/indiekit-endpoint-microsub 1.0.5 → 1.0.6

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.
@@ -346,6 +346,19 @@ export async function submitCompose(request, response) {
346
346
  const repostOf = request.body["repost-of"];
347
347
  const bookmarkOf = request.body["bookmark-of"];
348
348
 
349
+ // Debug logging
350
+ console.info(
351
+ "[Microsub] submitCompose request.body:",
352
+ JSON.stringify(request.body),
353
+ );
354
+ console.info("[Microsub] Extracted values:", {
355
+ content,
356
+ inReplyTo,
357
+ likeOf,
358
+ repostOf,
359
+ bookmarkOf,
360
+ });
361
+
349
362
  // Get Micropub endpoint
350
363
  const micropubEndpoint = application.micropubEndpoint;
351
364
  if (!micropubEndpoint) {
@@ -391,6 +404,12 @@ export async function submitCompose(request, response) {
391
404
  micropubData.append("content", content || "");
392
405
  }
393
406
 
407
+ // Debug: log what we're sending
408
+ console.info("[Microsub] Sending to Micropub:", {
409
+ url: micropubUrl,
410
+ body: micropubData.toString(),
411
+ });
412
+
394
413
  try {
395
414
  const micropubResponse = await fetch(micropubUrl, {
396
415
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-microsub",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Microsub endpoint for Indiekit. Enables subscribing to feeds and reading content using the Microsub protocol.",
5
5
  "keywords": [
6
6
  "indiekit",