From 42093dcfd37a499e9c3d5f887bbd50849d08f1bc Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:13:45 +1000 Subject: [PATCH] spaghetti --- src/util/entities/Message.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index d157ba35..0f59df6e 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -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")