mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 06:27:59 +00:00
only use hs2019 for mastodon
This commit is contained in:
parent
a640db8f06
commit
5397bb4653
|
@ -141,8 +141,8 @@ class HttpClient:
|
||||||
|
|
||||||
instance = self.database.get_inbox(url)
|
instance = self.database.get_inbox(url)
|
||||||
|
|
||||||
## Akkoma (and probably pleroma) doesn't support hs2019, so use the old algorithm
|
## Using the old algo by default is probably a better idea right now
|
||||||
if instance.get('software') in {'akkoma', 'pleroma'}:
|
if instance and instance.get('software') not in {'mastodon'}:
|
||||||
algorithm = aputils.Algorithm.RSASHA256
|
algorithm = aputils.Algorithm.RSASHA256
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue