mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 11:41:30 +00:00
Add checks for resource strings (#930)
* Add checks for resource strings * Don't use resource regex against png files
This commit is contained in:
parent
153bd75e26
commit
58664a2c7e
7 changed files with 53 additions and 10 deletions
|
@ -8,7 +8,6 @@ using LBPUnion.ProjectLighthouse.Types.Moderation.Cases;
|
|||
using LBPUnion.ProjectLighthouse.Types.Users;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using IOFile = System.IO.File;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Controllers.Admin;
|
||||
|
||||
|
@ -68,7 +67,7 @@ public class AdminUserController : ControllerBase
|
|||
// And finally, attempt to remove the resource from the filesystem. We don't want that taking up space.
|
||||
try
|
||||
{
|
||||
IOFile.Delete(FileHelper.GetResourcePath(hash));
|
||||
FileHelper.DeleteResource(hash);
|
||||
Logger.Success($"Deleted planet resource {hash}",
|
||||
LogArea.Admin);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue