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>2023-08-23 02:02:08 +1000
commit189688cd615e3e9734e4690eb39794c29cd24c21 (patch)
tree001248c798ee36df5d887ccebfc516fbd740435e /Media.cs
parent6cd1bd52992134e81e1b9bc57b90bd14a92ee56d (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)