From 5397bb4653b39953c2e25175a789426b308bcdcb Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sun, 27 Nov 2022 17:25:54 -0500 Subject: [PATCH] only use hs2019 for mastodon --- relay/http_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/http_client.py b/relay/http_client.py index 4bfd94e..4c82fa9 100644 --- a/relay/http_client.py +++ b/relay/http_client.py @@ -141,8 +141,8 @@ class HttpClient: instance = self.database.get_inbox(url) - ## Akkoma (and probably pleroma) doesn't support hs2019, so use the old algorithm - if instance.get('software') in {'akkoma', 'pleroma'}: + ## Using the old algo by default is probably a better idea right now + if instance and instance.get('software') not in {'mastodon'}: algorithm = aputils.Algorithm.RSASHA256 else: