mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-18 12:10:09 +00:00
fix: whoops
This commit is contained in:
parent
aca91db3f5
commit
21ac5bfc29
@ -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,14 +56,16 @@ impl Service {
|
|||||||
field: Some(ProfileField::AvatarUrl),
|
field: Some(ProfileField::AvatarUrl),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await
|
||||||
let _ = services()
|
{
|
||||||
.users
|
let _ = services()
|
||||||
.set_displayname(user_id, response.displayname.clone());
|
.users
|
||||||
let _ = services()
|
.set_displayname(user_id, response.displayname.clone());
|
||||||
.users
|
let _ = services()
|
||||||
.set_avatar_url(user_id, response.avatar_url);
|
.users
|
||||||
let _ = services().users.set_blurhash(user_id, response.blurhash);
|
.set_avatar_url(user_id, response.avatar_url);
|
||||||
|
let _ = services().users.set_blurhash(user_id, response.blurhash);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user