[backend/federation] Use the JSON-LD 1.0 processing mode

This commit is contained in:
Laura Hausmann 2024-02-21 16:56:32 +01:00
parent e6f881449e
commit cca1ee70bf
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -4,6 +4,7 @@ using Iceshrimp.Backend.Core.Federation.Cryptography;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using VDS.RDF.JsonLd;
using VDS.RDF.JsonLd.Syntax;
namespace Iceshrimp.Backend.Core.Federation.ActivityStreams;
@ -61,7 +62,7 @@ public static class LdHelpers
private static readonly JsonLdProcessorOptions Options = new()
{
DocumentLoader = CustomLoader, ExpandContext = ASExtensions
DocumentLoader = CustomLoader, ExpandContext = ASExtensions, ProcessingMode = JsonLdProcessingMode.JsonLd10
};
public static readonly JsonSerializerSettings JsonSerializerSettings = new()