Skip to content
Snippets Groups Projects

Modify usage of Gravatar

Merged Alexey Lunin requested to merge 373-Modify_usage_of_Gravatar into master
1 unresolved thread
@@ -609,6 +609,19 @@ const connection = Penpal.connectToParent({
return responseToClient;
},
identityPullAvatarFromGravatar: async () => {
Please register or sign in to reply
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
if (
!authenticationPublicKey ||
!window.loadedIdentities[authenticationPublicKey] ||
!extendPinCodeTtl(authenticationPublicKey)
) {
return encodeResponse("400", "", "Identity not authenticated");
}
return await executeRestfulFunction("private", viamApi, viamApi.identityPullAvatarFromGravatar);
},
identityAddNewDevice() {
return new Penpal.Promise(result => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
Loading