From e861c6731ac3c7ebb8fcf565e28669e0341f5265 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 22 Aug 2023 23:55:38 +1000 Subject: Fixed ingest toggle button Gallery now filters out ingest media if now showing NSFW --- Media.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Media.cs') 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) -- cgit v1.3