summaryrefslogtreecommitdiff
path: root/Media.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-22 23:55:38 +1000
committerJake Mannens <jake@asger.xyz>2025-08-19 23:33:18 +1000
commite861c6731ac3c7ebb8fcf565e28669e0341f5265 (patch)
tree970d2de9eb8bb7ff0ad552920cc52148f8f52033 /Media.cs
parent1cebdd5278155eedb3da8959322133df17625c6c (diff)
Fixed ingest toggle button
Gallery now filters out ingest media if now showing NSFW
Diffstat (limited to 'Media.cs')
-rw-r--r--Media.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Media.cs b/Media.cs
index 3f2021d..2e06dbf 100644
--- a/Media.cs
+++ b/Media.cs
@@ -17,6 +17,10 @@ public class Media : HBObject {
.Select(t => t.TagDefinition)
.Any(td => td.Guid == HBContext.IngestTag);
+ public bool IsNsfw => Tags
+ .Select(t => t.TagDefinition)
+ .Any(td => td.Guid == HBContext.NsfwTag);
+
public string? DisplayName {
get {
if(ShortDescription is not null)