slightly dedupe pfp/displayname updates, update blurhash in PDUs too

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-06-11 00:42:54 -04:00
commit 25d44cad31
4 changed files with 137 additions and 123 deletions
src/service/users

View file

@ -307,7 +307,7 @@ impl Data for KeyValueDatabase {
.transpose()
}
/// Sets a new avatar_url or removes it if avatar_url is None.
/// Sets a new blurhash or removes it if blurhash is None.
fn set_blurhash(&self, user_id: &UserId, blurhash: Option<String>) -> Result<()> {
if let Some(blurhash) = blurhash {
self.userid_blurhash