use split off image recoding function for avatars

This commit is contained in:
B. Petersen
2020-11-01 23:41:39 +01:00
committed by link2xt
parent 7c15e4e948
commit 2720d34594
3 changed files with 5 additions and 22 deletions

View File

@@ -217,7 +217,7 @@ impl Context {
match value {
Some(value) => {
let blob = BlobObject::new_from_path(&self, value).await?;
blob.recode_to_avatar_size(self)?;
blob.recode_to_avatar_size(self).await?;
self.sql
.set_raw_config(self, key, Some(blob.as_name()))
.await