diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-22 23:55:38 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-23 02:02:08 +1000 |
| commit | 189688cd615e3e9734e4690eb39794c29cd24c21 (patch) | |
| tree | 001248c798ee36df5d887ccebfc516fbd740435e /Media.cs | |
| parent | 6cd1bd52992134e81e1b9bc57b90bd14a92ee56d (diff) | |
Fixed ingest toggle button
Gallery now filters out ingest media if now showing NSFW
Diffstat (limited to 'Media.cs')
| -rw-r--r-- | Media.cs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
