mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 03:31:29 +00:00
Make BackgroundHash not nullable
This commit is contained in:
parent
d41b518fc2
commit
6fcc51fca3
2 changed files with 1 additions and 7 deletions
|
@ -122,12 +122,6 @@ public class PublishController : ControllerBase
|
||||||
// Yes Rider, this isn't null
|
// Yes Rider, this isn't null
|
||||||
Debug.Assert(slot.Resources != null, "slot.ResourceList != null");
|
Debug.Assert(slot.Resources != null, "slot.ResourceList != null");
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(slot.BackgroundHash))
|
|
||||||
{
|
|
||||||
Logger.Warn("Rejecting level upload, background is null", LogArea.Publish);
|
|
||||||
return this.BadRequest();
|
|
||||||
}
|
|
||||||
|
|
||||||
slot.Description = CensorHelper.FilterMessage(slot.Description);
|
slot.Description = CensorHelper.FilterMessage(slot.Description);
|
||||||
|
|
||||||
if (slot.Description.Length > 512)
|
if (slot.Description.Length > 512)
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class GameUserSlot : SlotBase, INeedsPreparationForSerialization
|
||||||
|
|
||||||
[DefaultValue("")]
|
[DefaultValue("")]
|
||||||
[XmlElement("background")]
|
[XmlElement("background")]
|
||||||
public string? BackgroundHash { get; set; }
|
public string BackgroundHash { get; set; } = "";
|
||||||
|
|
||||||
[XmlElement("shareable")]
|
[XmlElement("shareable")]
|
||||||
public int IsShareable { get; set; }
|
public int IsShareable { get; set; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue