diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-28 15:45:21 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-28 15:45:21 +1000 |
| commit | 3be6ef65f4ecdfc564231b9e613b8a307dfdbe64 (patch) | |
| tree | e7608e3d477073be45d76677ad5f0b2509e423c1 /Media.cs | |
| parent | b8abec12a28f07e898b9ad38575fc1765188c286 (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.cs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |
