mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 14:12:27 +00:00
Fix icon updating for default game assets (#338)
This commit is contained in:
parent
8ff956fcbf
commit
36cd42399d
1 changed files with 2 additions and 5 deletions
|
@ -104,12 +104,9 @@ public class UserController : ControllerBase
|
||||||
user.Biography = update.Biography;
|
user.Biography = update.Biography;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (string? resource in new[]
|
foreach (string? resource in new[]{update.IconHash, update.YayHash, update.MehHash, update.BooHash, update.PlanetHash,})
|
||||||
{
|
{
|
||||||
update.IconHash, update.YayHash, update.MehHash, update.BooHash, update.PlanetHash,
|
if (resource != null && !resource.StartsWith('g') && !FileHelper.ResourceExists(resource)) return this.BadRequest();
|
||||||
})
|
|
||||||
{
|
|
||||||
if (resource != null && !FileHelper.ResourceExists(resource)) return this.BadRequest();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (update.IconHash != null) user.IconHash = update.IconHash;
|
if (update.IconHash != null) user.IconHash = update.IconHash;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue