diff --git a/Iceshrimp.Backend/Controllers/Web/ProfileController.cs b/Iceshrimp.Backend/Controllers/Web/ProfileController.cs index 96902aac..5ba21538 100644 --- a/Iceshrimp.Backend/Controllers/Web/ProfileController.cs +++ b/Iceshrimp.Backend/Controllers/Web/ProfileController.cs @@ -34,7 +34,10 @@ public class ProfileController(UserService userSvc, DriveService driveSvc) : Con Location = profile.Location, Birthday = profile.Birthday, FFVisibility = ffVisibility, - Fields = fields.ToList() + Fields = fields.ToList(), + IsBot = user.IsBot, + IsCat = user.IsCat, + SpeakAsCat = user.SpeakAsCat }; } @@ -67,6 +70,10 @@ public class ProfileController(UserService userSvc, DriveService driveSvc) : Con profile.Fields = fields.ToArray(); profile.FFVisibility = (UserProfile.UserProfileFFVisibility)newProfile.FFVisibility; + user.IsBot = newProfile.IsBot; + user.IsCat = newProfile.IsCat; + user.SpeakAsCat = newProfile is { SpeakAsCat: true, IsCat: true }; + var prevAvatarId = user.AvatarId; var prevBannerId = user.BannerId; await userSvc.UpdateLocalUserAsync(user, prevAvatarId, prevBannerId); diff --git a/Iceshrimp.Shared/Schemas/Web/UserProfileEntity.cs b/Iceshrimp.Shared/Schemas/Web/UserProfileEntity.cs index 14d6ea64..2b432d77 100644 --- a/Iceshrimp.Shared/Schemas/Web/UserProfileEntity.cs +++ b/Iceshrimp.Shared/Schemas/Web/UserProfileEntity.cs @@ -17,6 +17,10 @@ public class UserProfileEntity public required List Fields { get; set; } public required FFVisibilityEnum FFVisibility { get; set; } + + public required bool IsBot { get; set; } + public required bool IsCat { get; set; } + public required bool SpeakAsCat { get; set; } [SuppressMessage("ReSharper", "UnusedMember.Global")] public enum FFVisibilityEnum