File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1435,7 +1435,7 @@ impl Contact {
1435
1435
pub async fn get_profile_image ( & self , context : & Context ) -> Result < Option < PathBuf > > {
1436
1436
if self . id == ContactId :: SELF {
1437
1437
if let Some ( p) = context. get_config ( Config :: Selfavatar ) . await ? {
1438
- return Ok ( Some ( PathBuf :: from ( p) ) ) ;
1438
+ return Ok ( Some ( PathBuf :: from ( p) ) ) ; // get_config() calls get_abs_path() internally already
1439
1439
}
1440
1440
} else if let Some ( image_rel) = self . param . get ( Param :: ProfileImage ) {
1441
1441
if !image_rel. is_empty ( ) {
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ impl Sql {
251
251
252
252
if recode_avatar {
253
253
if let Some ( avatar) = context. get_config ( Config :: Selfavatar ) . await ? {
254
- let mut blob = BlobObject :: from_name ( context, avatar) ?;
254
+ let mut blob = BlobObject :: from_path ( context, Path :: new ( & avatar) ) ?;
255
255
match blob. recode_to_avatar_size ( context) . await {
256
256
Ok ( ( ) ) => {
257
257
if let Some ( path) = blob. to_abs_path ( ) . to_str ( ) {
You can’t perform that action at this time.
0 commit comments