summaryrefslogtreecommitdiff
path: root/Media.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-28 15:45:21 +1000
committerJake Mannens <jake@asger.xyz>2025-08-20 00:48:43 +1000
commitaec195eff8a62bfdeb58f98f90b894f5f673360d (patch)
tree641c0771a5314be07c96ac705f8c12ed0a898287 /Media.cs
parenta1146209ad587bc1af93b2b643d63d41444b9029 (diff)
Gallery media is now filtered by tag using Object IDs rather than Guids, signficantly reducing DB overhead
Diffstat (limited to 'Media.cs')
-rw-r--r--Media.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Media.cs b/Media.cs
index 750aeb4..47aa73b 100644
--- a/Media.cs
+++ b/Media.cs
@@ -14,8 +14,8 @@ public class Media : HBObject {
public virtual List<UploadedFile> UploadedFiles { get; set; } = new();
public bool IsIngest => Tags
- .Select(t => t.TagDefinition.Guid)
- .Contains(HBContext.IngestTag);
+ .Select(t => t.TagDefinitionId)
+ .Contains(HBContext.IngestTagId);
public string? DisplayName {
get {