activitypub: fix parsing users without sharedInbox
Some checks failed
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/test Pipeline failed

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

View file

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