mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
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
This commit is contained in:
@@ -642,8 +642,6 @@
|
||||
|
||||
if (syndicateTo) {
|
||||
body.properties['mp-syndicate-to'] = [syndicateTo];
|
||||
} else {
|
||||
body.properties['mp-syndicate-to'] = [];
|
||||
}
|
||||
|
||||
fetch('/micropub', {
|
||||
|
||||
Reference in New Issue
Block a user