diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-24 14:23:34 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-24 14:23:34 +1000 |
| commit | 5c48b5c90e8037e9b9ea4b4c59d4e376a20590d9 (patch) | |
| tree | 706382ff2bf1d8710723b8196a8c5124f7dd9e80 /Media.cs | |
| parent | 56e3e6072146e0d0d5fb7c098baced157c592998 (diff) | |
Removed EFCore lazy-loading proxies
Diffstat (limited to 'Media.cs')
| -rw-r--r-- | Media.cs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -14,12 +14,12 @@ public class Media : HBObject { public virtual List<UploadedFile> UploadedFiles { get; set; } = new(); public bool IsIngest => Tags - .Select(t => t.TagDefinition) - .Any(td => td.Guid == HBContext.IngestTag); + .Select(t => t.TagDefinition.Guid) + .Contains(HBContext.IngestTag); public bool IsNsfw => Tags - .Select(t => t.TagDefinition) - .Any(td => td.Guid == HBContext.NsfwTag); + .Select(t => t.TagDefinition.Guid) + .Contains(HBContext.NsfwTag); public string? DisplayName { get { |
