spaghetti

This commit is contained in:
Madeline
2023-08-15 00:13:45 +10:00
parent cb1dbd83e2
commit 42093dcfd3
+3 -1
View File
@@ -285,7 +285,9 @@ export class Message extends BaseClass {
: data.attributedTo;
if (typeof attrib == "string") {
// fetch it
attrib = (await fetch(attrib).then((x) => x.json())) as AnyAPObject;
attrib = (await fetch(attrib, {
headers: { Accept: "application/activity+json" },
}).then((x) => x.json())) as AnyAPObject;
}
if (attrib.type != "Person")