diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-20 22:59:09 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-18 17:03:21 +1000 |
| commit | 4558ed9d6cbc59229cd56cc7a6c36b1df0b8199a (patch) | |
| tree | 24b27334ed8dc3cbcdc6cca9def75bca176c8764 /Services/MediaService.cs | |
| parent | d7bc8b58f750c1a5c629915ed2097e477d204a67 (diff) | |
NSFW tagging and tag editing
Diffstat (limited to 'Services/MediaService.cs')
| -rw-r--r-- | Services/MediaService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/MediaService.cs b/Services/MediaService.cs index be2657a..05dd5b0 100644 --- a/Services/MediaService.cs +++ b/Services/MediaService.cs @@ -15,7 +15,7 @@ public class MediaService : IMediaService { public void SetIngest(Media media, bool ingest) { using var db = dbFactory.CreateDbContext(); var ingestTag = db.TagDefinitions - .First(td => td.Source == TagSource.Internal && td.Name == "ingest"); + .First(td => td.Guid == HBContext.IngestTag); if(ingest) media.Tags.Add(new() { TagDefinition = ingestTag }); |
