From 8cb557abdfeb2b4e7831c608560311e8387a57bc Mon Sep 17 00:00:00 2001 From: jvyden Date: Sat, 13 Nov 2021 11:00:54 -0500 Subject: [PATCH] Send no elements instead of 404 for myFriends --- ProjectLighthouse/Controllers/FriendsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Controllers/FriendsController.cs b/ProjectLighthouse/Controllers/FriendsController.cs index 6cd14fce..aea7a0d2 100644 --- a/ProjectLighthouse/Controllers/FriendsController.cs +++ b/ProjectLighthouse/Controllers/FriendsController.cs @@ -74,7 +74,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers if (!FriendHelper.FriendIdsByUserId.TryGetValue(user.UserId, out int[]? friendIds) || friendIds == null) { - return this.NotFound(); + return this.Ok(LbpSerializer.BlankElement("myFriends")); } string friends = "";