From 01598f3b1ec328dff10cc5b033e1e68c954f4c0e Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 11 Aug 2024 15:32:38 +0100 Subject: [PATCH] Fix mkp --- app/modules/misskey_preview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/modules/misskey_preview.py b/app/modules/misskey_preview.py index c622a4c..99b6a20 100644 --- a/app/modules/misskey_preview.py +++ b/app/modules/misskey_preview.py @@ -38,13 +38,12 @@ class MisskeyPreviewModule(niobot.Module): self.log.info("Already sent 5 posts, stopping") break resp = await client.get("https://%s/api/v1/statuses/%s" % (parsed.netloc, post_id)) - self.log.critical(resp) if resp.status_code != 200: self.log.error("Got HTTP %d from %s", resp.status_code, resp.url) continue data = resp.json() self.log.info("Got data: %r", data) - username = data["user"]["fqn"] + username = data["account"]["fqn"] if not data.get("text"): self.log.warning("No text for post %s", post_id) continue