From 3eacba16720d022d539918508d6cb39d6fb42b0b Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sat, 14 Mar 2026 23:40:43 +0100 Subject: [PATCH] fix: don't send empty mp-syndicate-to in Micropub reply Sending mp-syndicate-to: [] caused a server-side crash in jf2.js where syndicateTo?.includes() received a non-iterable after normalization. Only include the property when a target exists. Confab-Link: http://localhost:8080/sessions/184584f4-67e1-485a-aba8-02ac34a600fe --- js/webmentions.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/webmentions.js b/js/webmentions.js index 0e8ae62..ca20a0c 100644 --- a/js/webmentions.js +++ b/js/webmentions.js @@ -642,8 +642,6 @@ if (syndicateTo) { body.properties['mp-syndicate-to'] = [syndicateTo]; - } else { - body.properties['mp-syndicate-to'] = []; } fetch('/micropub', {