From fbb078b30c1a76ad81f6a4bf77fef5645dad3cce Mon Sep 17 00:00:00 2001 From: grassblock Date: Mon, 4 Aug 2025 14:42:03 +0800 Subject: [PATCH] fix: condition to check instance must be get --- core/post_to_fedi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/post_to_fedi.py b/core/post_to_fedi.py index 427456d..95c7110 100644 --- a/core/post_to_fedi.py +++ b/core/post_to_fedi.py @@ -50,7 +50,7 @@ async def instance_is_misskey(instance: str) -> bool: """ try: async with aiohttp.ClientSession() as client: - async with client.post(f"https://{instance}/api/v1/instance", headers={"Content-Type": "application/json"}, + async with client.get(f"https://{instance}/api/v1/instance", headers={"Content-Type": "application/json"}, allow_redirects=False) as r: if r.status != 200: return True