diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-24 14:23:34 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-19 23:33:18 +1000 |
| commit | 9a99c6859c2e740e1b6afe3c8c1020343a848197 (patch) | |
| tree | f1525538a4b0f89eca4d463deeea53743eedc98d /Media.cs | |
| parent | e861c6731ac3c7ebb8fcf565e28669e0341f5265 (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 { |
