From f49f17a9db8e870bc0a051ad77effbfdeb458463 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 31 Dec 2025 23:06:29 +0800 Subject: [PATCH] :loud_sound: Add more proper logging for ap failure --- .../ActivityPub/ActivityPubActivityHandler.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Sphere/ActivityPub/ActivityPubActivityHandler.cs b/DysonNetwork.Sphere/ActivityPub/ActivityPubActivityHandler.cs index 1095844..89c92e0 100644 --- a/DysonNetwork.Sphere/ActivityPub/ActivityPubActivityHandler.cs +++ b/DysonNetwork.Sphere/ActivityPub/ActivityPubActivityHandler.cs @@ -248,7 +248,12 @@ public class ActivityPubActivityHandler( { var objectValue = activity.GetValueOrDefault("object"); - if (objectValue is not Dictionary objectDict) return false; + if (objectValue is not Dictionary objectDict) + { + logger.LogWarning("Unable undo operation, no object found... {Object}", JsonSerializer.Serialize(activity)); + return false; + } + var objectType = objectDict.GetValueOrDefault("type")?.ToString(); return objectType switch {