mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-14 22:02:26 +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.JpegHash,
|
||||||
report.GriefStateHash,
|
report.GriefStateHash,
|
||||||
report.InitialStateHash,
|
|
||||||
};
|
};
|
||||||
|
if(report.LevelType != "user")
|
||||||
|
hashes.Add(report.InitialStateHash);
|
||||||
foreach (string hash in hashes)
|
foreach (string hash in hashes)
|
||||||
{
|
{
|
||||||
if (System.IO.File.Exists(Path.Combine("png", $"{hash}.png")))
|
if (System.IO.File.Exists(Path.Combine("png", $"{hash}.png")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue