[backend/api] Make avatar/banner updates user the files' AccessUrls instead of the Urls
This commit is contained in:
parent
bef7dd9855
commit
365c3f6f1d
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ public class AccountController(
|
|||
var avatar = await driveSvc.StoreFile(request.Avatar.OpenReadStream(), user, rq);
|
||||
user.Avatar = avatar;
|
||||
user.AvatarBlurhash = avatar.Blurhash;
|
||||
user.AvatarUrl = avatar.Url;
|
||||
user.AvatarUrl = avatar.AccessUrl;
|
||||
}
|
||||
|
||||
if (request.Banner != null)
|
||||
|
@ -120,7 +120,7 @@ public class AccountController(
|
|||
var banner = await driveSvc.StoreFile(request.Banner.OpenReadStream(), user, rq);
|
||||
user.Banner = banner;
|
||||
user.BannerBlurhash = banner.Blurhash;
|
||||
user.BannerUrl = banner.Url;
|
||||
user.BannerUrl = banner.AccessUrl;
|
||||
}
|
||||
|
||||
user = await userSvc.UpdateLocalUserAsync(user, prevAvatarId, prevBannerId);
|
||||
|
|
Loading…
Add table
Reference in a new issue