only use hs2019 for mastodon

This commit is contained in:
Izalia Mae 2022-11-27 17:25:54 -05:00
parent a640db8f06
commit 5397bb4653

View file

@ -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: