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
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:
parent
e2779befe6
commit
d293fc1dc7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue