mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-04 19:08:42 +00:00
Allow recent activity photos from moon and pod
This commit is contained in:
parent
7b6786ce87
commit
7c07742090
1 changed files with 4 additions and 2 deletions
|
@ -57,6 +57,7 @@ public class ActivityEntityEventHandler : IEntityEventHandler
|
||||||
},
|
},
|
||||||
PhotoEntity photo => photo.SlotId switch
|
PhotoEntity photo => photo.SlotId switch
|
||||||
{
|
{
|
||||||
|
// Photos without levels
|
||||||
null => new PhotoActivityEntity
|
null => new PhotoActivityEntity
|
||||||
{
|
{
|
||||||
Type = EventType.UploadPhoto,
|
Type = EventType.UploadPhoto,
|
||||||
|
@ -65,13 +66,14 @@ public class ActivityEntityEventHandler : IEntityEventHandler
|
||||||
},
|
},
|
||||||
_ => photo.Slot?.Type switch
|
_ => photo.Slot?.Type switch
|
||||||
{
|
{
|
||||||
SlotType.User => new PhotoActivityEntity
|
SlotType.Developer => null,
|
||||||
|
// Non-story levels (moon, pod, etc)
|
||||||
|
_ => new PhotoActivityEntity
|
||||||
{
|
{
|
||||||
Type = EventType.UploadPhoto,
|
Type = EventType.UploadPhoto,
|
||||||
PhotoId = photo.PhotoId,
|
PhotoId = photo.PhotoId,
|
||||||
UserId = photo.CreatorId,
|
UserId = photo.CreatorId,
|
||||||
},
|
},
|
||||||
_ => null,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ScoreEntity score => score.Slot.Type switch
|
ScoreEntity score => score.Slot.Type switch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue