|
|
@ -47,7 +47,7 @@ impl Service {
|
|
|
|
|| (services().users.blurhash(user_id)? != membership_event.blurhash))
|
|
|
|
|| (services().users.blurhash(user_id)? != membership_event.blurhash))
|
|
|
|
&& (membership != MembershipState::Leave)
|
|
|
|
&& (membership != MembershipState::Leave)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let response = services()
|
|
|
|
if let Ok(response) = services()
|
|
|
|
.sending
|
|
|
|
.sending
|
|
|
|
.send_federation_request(
|
|
|
|
.send_federation_request(
|
|
|
|
user_id.server_name(),
|
|
|
|
user_id.server_name(),
|
|
|
@ -56,7 +56,8 @@ impl Service {
|
|
|
|
field: Some(ProfileField::AvatarUrl),
|
|
|
|
field: Some(ProfileField::AvatarUrl),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.await?;
|
|
|
|
.await
|
|
|
|
|
|
|
|
{
|
|
|
|
let _ = services()
|
|
|
|
let _ = services()
|
|
|
|
.users
|
|
|
|
.users
|
|
|
|
.set_displayname(user_id, response.displayname.clone());
|
|
|
|
.set_displayname(user_id, response.displayname.clone());
|
|
|
@ -64,6 +65,7 @@ impl Service {
|
|
|
|
.users
|
|
|
|
.users
|
|
|
|
.set_avatar_url(user_id, response.avatar_url);
|
|
|
|
.set_avatar_url(user_id, response.avatar_url);
|
|
|
|
let _ = services().users.set_blurhash(user_id, response.blurhash);
|
|
|
|
let _ = services().users.set_blurhash(user_id, response.blurhash);
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|