[backnd/database] Don't try to parse UserProfile.MutedWords
This commit is contained in:
parent
58ad080a99
commit
f8301613e7
2 changed files with 3 additions and 2 deletions
|
@ -4568,7 +4568,7 @@ namespace Iceshrimp.Backend.Core.Database.Migrations
|
||||||
.HasDefaultValueSql("'[]'::jsonb")
|
.HasDefaultValueSql("'[]'::jsonb")
|
||||||
.HasComment("List of instances muted by the user.");
|
.HasComment("List of instances muted by the user.");
|
||||||
|
|
||||||
b.Property<List<List<string>>>("MutedWords")
|
b.Property<string>("MutedWords")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("jsonb")
|
.HasColumnType("jsonb")
|
||||||
|
|
|
@ -135,8 +135,9 @@ public class UserProfile
|
||||||
|
|
||||||
[Column("enableWordMute")] public bool EnableWordMute { get; set; }
|
[Column("enableWordMute")] public bool EnableWordMute { get; set; }
|
||||||
|
|
||||||
|
//TODO: refactor this column (it's currently a List<string | string[]>, which is terrible)
|
||||||
[Column("mutedWords", TypeName = "jsonb")]
|
[Column("mutedWords", TypeName = "jsonb")]
|
||||||
public List<List<string>> MutedWords { get; set; } = null!;
|
public string MutedWords { get; set; } = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether reject index by crawler.
|
/// Whether reject index by crawler.
|
||||||
|
|
Loading…
Add table
Reference in a new issue