mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
spaghetti
This commit is contained in:
parent
cb1dbd83e2
commit
42093dcfd3
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user