🗃️ Remove some unused outdated fields

This commit is contained in:
2025-10-26 02:41:30 +08:00
parent 323fa8ee15
commit bf1c8e0a85
7 changed files with 2014 additions and 41 deletions

View File

@@ -19,9 +19,6 @@ public class SnActivity : ModelBase
public object? Data { get; set; }
// Outdated fields, for backward compability
public int Visibility => 0;
public static SnActivity Empty()
{
var now = SystemClock.Instance.GetCurrentInstant();

View File

@@ -20,10 +20,6 @@ public class SnChatRoom : ModelBase, IIdentifiedResource
public bool IsCommunity { get; set; }
public bool IsPublic { get; set; }
// Outdated fields, for backward compability
[MaxLength(32)] public string? PictureId { get; set; }
[MaxLength(32)] public string? BackgroundId { get; set; }
[Column(TypeName = "jsonb")] public SnCloudFileReferenceObject? Picture { get; set; }
[Column(TypeName = "jsonb")] public SnCloudFileReferenceObject? Background { get; set; }

View File

@@ -22,10 +22,6 @@ public class SnPublisher : ModelBase, IIdentifiedResource
[MaxLength(256)] public string Nick { get; set; } = string.Empty;
[MaxLength(4096)] public string? Bio { get; set; }
// Outdated fields, for backward compability
[MaxLength(32)] public string? PictureId { get; set; }
[MaxLength(32)] public string? BackgroundId { get; set; }
[Column(TypeName = "jsonb")] public SnCloudFileReferenceObject? Picture { get; set; }
[Column(TypeName = "jsonb")] public SnCloudFileReferenceObject? Background { get; set; }