From 7991f88df5318b1a5993aa57073172505ad3eb7c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 31 Dec 2025 01:57:49 +0800 Subject: [PATCH] :bug: Fix wrong usage of assets base url --- DysonNetwork.Sphere/ActivityPub/ActivityPubDeliveryService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Sphere/ActivityPub/ActivityPubDeliveryService.cs b/DysonNetwork.Sphere/ActivityPub/ActivityPubDeliveryService.cs index 959b647..01eb93a 100644 --- a/DysonNetwork.Sphere/ActivityPub/ActivityPubDeliveryService.cs +++ b/DysonNetwork.Sphere/ActivityPub/ActivityPubDeliveryService.cs @@ -194,7 +194,7 @@ public class ActivityPubDeliveryService( { ["type"] = "Document", ["mediaType"] = "image/jpeg", - ["url"] = $"https://{Domain}/api/files/{a.Id}" + ["url"] = $"{AssetsBaseUrl}/{a.Id}" }).ToList() } }; @@ -248,7 +248,7 @@ public class ActivityPubDeliveryService( { ["type"] = "Document", ["mediaType"] = "image/jpeg", - ["url"] = $"https://{Domain}/api/files/{a.Id}" + ["url"] = $"{AssetsBaseUrl}/{a.Id}" }).ToList() } };