fix: regression that caused Piefed (or potentially others) content to be dropped on receipt

This commit is contained in:
Julian Lam
2025-09-04 10:29:17 -04:00
parent c07e81d2ab
commit 86d9016f02

View File

@@ -585,6 +585,9 @@ ActivityPub.checkHeader = async (url, timeout) => {
.map(p => p.trim()) .map(p => p.trim())
.reduce((memo, cur) => { .reduce((memo, cur) => {
cur = cur.split('='); cur = cur.split('=');
if (cur.length < 2) {
cur.push('');
}
memo[cur[0]] = cur[1].slice(1, -1); memo[cur[0]] = cur[1].slice(1, -1);
return memo; return memo;
}, {}); }, {});