Merge pull request #486 from mishnz/master

The Mastodon server does not currently use URL_SAFE encoding on its s…
This commit is contained in:
Eugen Rochko 2023-01-01 10:01:17 +01:00 committed by GitHub
commit 525cc69c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ public class PushSubscriptionManager{
@Override
public void onSuccess(PushSubscription result){
MastodonAPIController.runInBackground(()->{
serverKey=deserializeRawPublicKey(Base64.decode(result.serverKey, Base64.URL_SAFE));
serverKey=deserializeRawPublicKey(Base64.decode(result.serverKey, Base64.DEFAULT));
AccountSession session=AccountSessionManager.getInstance().tryGetAccount(accountID);
if(session==null)