summaryrefslogtreecommitdiff
path: root/Media.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-24 14:23:34 +1000
committerJake Mannens <jake@asger.xyz>2023-08-24 14:23:34 +1000
commit5c48b5c90e8037e9b9ea4b4c59d4e376a20590d9 (patch)
tree706382ff2bf1d8710723b8196a8c5124f7dd9e80 /Media.cs
parent56e3e6072146e0d0d5fb7c098baced157c592998 (diff)
Removed EFCore lazy-loading proxies
Diffstat (limited to 'Media.cs')
-rw-r--r--Media.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Media.cs b/Media.cs
index 2e06dbf..56d5f41 100644
--- a/Media.cs
+++ b/Media.cs
@@ -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 {