mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 16:58:38 +00:00
Fix duplicate photos on in-game profiles
This commit is contained in:
parent
5028266ca0
commit
8e096052ce
2 changed files with 7 additions and 5 deletions
|
@ -62,12 +62,15 @@ public class GamePhoto : ILbpSerializable, INeedsPreparationForSerialization
|
|||
})
|
||||
.FirstOrDefaultAsync();
|
||||
|
||||
if (partialSlot != null)
|
||||
// Don't send level info if it's not a user or developer slot
|
||||
if (partialSlot?.Type is not (SlotType.Developer or SlotType.User))
|
||||
{
|
||||
this.LevelInfo = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.LevelInfo.SlotType = partialSlot.Type;
|
||||
|
||||
if (partialSlot.Type == SlotType.Developer)
|
||||
this.LevelInfo.SlotId = partialSlot.InternalSlotId;
|
||||
if (partialSlot.Type == SlotType.Developer) this.LevelInfo.SlotId = partialSlot.InternalSlotId;
|
||||
}
|
||||
|
||||
// Fetch creator username
|
||||
|
|
|
@ -3,7 +3,6 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
using LBPUnion.ProjectLighthouse.Database;
|
||||
using LBPUnion.ProjectLighthouse.Serialization;
|
||||
using LBPUnion.ProjectLighthouse.Types.Entities.Level;
|
||||
using LBPUnion.ProjectLighthouse.Types.Entities.Token;
|
||||
using LBPUnion.ProjectLighthouse.Types.Levels;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue