From 7c07742090c4fe2032afee15bb785a96ae7de623 Mon Sep 17 00:00:00 2001 From: Slendy Date: Tue, 5 Sep 2023 23:43:13 -0500 Subject: [PATCH] Allow recent activity photos from moon and pod --- .../Types/Activity/ActivityEntityEventHandler.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/Types/Activity/ActivityEntityEventHandler.cs b/ProjectLighthouse/Types/Activity/ActivityEntityEventHandler.cs index f338f9f4..29d7f9a8 100644 --- a/ProjectLighthouse/Types/Activity/ActivityEntityEventHandler.cs +++ b/ProjectLighthouse/Types/Activity/ActivityEntityEventHandler.cs @@ -57,6 +57,7 @@ public class ActivityEntityEventHandler : IEntityEventHandler }, PhotoEntity photo => photo.SlotId switch { + // Photos without levels null => new PhotoActivityEntity { Type = EventType.UploadPhoto, @@ -65,13 +66,14 @@ public class ActivityEntityEventHandler : IEntityEventHandler }, _ => photo.Slot?.Type switch { - SlotType.User => new PhotoActivityEntity + SlotType.Developer => null, + // Non-story levels (moon, pod, etc) + _ => new PhotoActivityEntity { Type = EventType.UploadPhoto, PhotoId = photo.PhotoId, UserId = photo.CreatorId, }, - _ => null, }, }, ScoreEntity score => score.Slot.Type switch