mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 22:22:27 +00:00
Prevent grief report deletion from removing slot rootLevel (#395)
This commit is contained in:
parent
d1bec61b90
commit
add83a32a8
1 changed files with 2 additions and 1 deletions
|
@ -31,8 +31,9 @@ public class AdminReportController : ControllerBase
|
|||
{
|
||||
report.JpegHash,
|
||||
report.GriefStateHash,
|
||||
report.InitialStateHash,
|
||||
};
|
||||
if(report.LevelType != "user")
|
||||
hashes.Add(report.InitialStateHash);
|
||||
foreach (string hash in hashes)
|
||||
{
|
||||
if (System.IO.File.Exists(Path.Combine("png", $"{hash}.png")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue