From cb1dbd83e272bc1fa16435ebecec46bd7584efee Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:12:04 +1000 Subject: ahhhh --- src/activitypub/routes/channel/#channel_id/inbox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/activitypub') diff --git a/src/activitypub/routes/channel/#channel_id/inbox.ts b/src/activitypub/routes/channel/#channel_id/inbox.ts index 073c1d0b..ee7f4519 100644 --- a/src/activitypub/routes/channel/#channel_id/inbox.ts +++ b/src/activitypub/routes/channel/#channel_id/inbox.ts @@ -11,7 +11,7 @@ router.post("/", route({}), async (req, res) => { if (body.type != "Create") throw new HTTPError("not implemented"); - const message = await Message.fromAP(body); + const message = await Message.fromAP(body.object); await message.save(); await emitEvent({ -- cgit 1.5.1