aboutsummaryrefslogtreecommitdiffstats
path: root/modules/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/activitypub')
-rw-r--r--modules/activitypub/user_settings.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/activitypub/user_settings.go b/modules/activitypub/user_settings.go
index d196a3806e..7f939af352 100644
--- a/modules/activitypub/user_settings.go
+++ b/modules/activitypub/user_settings.go
@@ -29,11 +29,10 @@ func GetKeyPair(ctx context.Context, user *user_model.User) (pub, priv string, e
return pub, priv, err
}
return pub, priv, err
- } else {
- priv = settings[user_model.UserActivityPubPrivPem].SettingValue
- pub = settings[user_model.UserActivityPubPubPem].SettingValue
- return pub, priv, err
}
+ priv = settings[user_model.UserActivityPubPrivPem].SettingValue
+ pub = settings[user_model.UserActivityPubPubPem].SettingValue
+ return pub, priv, err
}
// GetPublicKey function returns a user's public key