mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-28 12:45:34 +00:00
spaghetti
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user