1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 02:12:40 +01:00

spaghetti

This commit is contained in:
Madeline 2023-08-15 00:13:45 +10:00
parent cb1dbd83e2
commit 42093dcfd3
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

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")