🐛 Fix wrong usage of assets base url

This commit is contained in:
2025-12-31 01:57:49 +08:00
parent a005cfb143
commit 7991f88df5

View File

@@ -194,7 +194,7 @@ public class ActivityPubDeliveryService(
{ {
["type"] = "Document", ["type"] = "Document",
["mediaType"] = "image/jpeg", ["mediaType"] = "image/jpeg",
["url"] = $"https://{Domain}/api/files/{a.Id}" ["url"] = $"{AssetsBaseUrl}/{a.Id}"
}).ToList<object>() }).ToList<object>()
} }
}; };
@@ -248,7 +248,7 @@ public class ActivityPubDeliveryService(
{ {
["type"] = "Document", ["type"] = "Document",
["mediaType"] = "image/jpeg", ["mediaType"] = "image/jpeg",
["url"] = $"https://{Domain}/api/files/{a.Id}" ["url"] = $"{AssetsBaseUrl}/{a.Id}"
}).ToList<object>() }).ToList<object>()
} }
}; };