activitypub: fix parsing users without sharedInbox

This commit is contained in:
Johann150 2024-04-01 12:03:13 +02:00
parent e2779befe6
commit d293fc1dc7
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -87,7 +87,7 @@ async function validateActor(x: IObject, resolver: Resolver): Promise<IActor> {
} }
// unify different sharedInbox places // unify different sharedInbox places
x.sharedInbox = x.sharedInbox ?? x.endpoints?.sharedInbox; x.sharedInbox = x.sharedInbox ?? x.endpoints?.sharedInbox ?? null;
if (x.sharedInbox != null) { if (x.sharedInbox != null) {
// check that sharedInbox is a valid and absolute URL // check that sharedInbox is a valid and absolute URL
try { try {