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 /Controllers | |
| parent | 6cd1bd52992134e81e1b9bc57b90bd14a92ee56d (diff) | |
Fixed ingest toggle button
Gallery now filters out ingest media if now showing NSFW
Diffstat (limited to 'Controllers')
| -rw-r--r-- | Controllers/MediaController.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Controllers/MediaController.cs b/Controllers/MediaController.cs index 3ccfc1d..b7c8314 100644 --- a/Controllers/MediaController.cs +++ b/Controllers/MediaController.cs @@ -28,10 +28,6 @@ public class MediaController : Controller { inspector = inspectorBuilder.Build(); } - [HttpGet("list")] - public IActionResult EnumerateMedia() => - Ok(db.Media.Select(m => m.ObjectId).ToArray()); - [HttpGet("{mediaId}")] public IActionResult Fetch([FromRoute] Guid mediaId) { var media = db.Media.First(m => m.Guid == mediaId); @@ -165,6 +161,6 @@ public class MediaController : Controller { db.SaveChanges(); transaction.Commit(); - return Ok(media.Guid); + return Redirect($"/ViewMedia?m={media.Guid}"); } }
\ No newline at end of file |
