Update server dependencies

This commit is contained in:
Chocobozzz 2020-06-17 10:55:40 +02:00
parent 982f2fc9b4
commit faa9d434b4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
25 changed files with 1675 additions and 1473 deletions

View file

@ -166,7 +166,7 @@ async function updateActorInstance (actorInstance: ActorModel, attributes: Activ
actorInstance.followersUrl = attributes.followers
actorInstance.followingUrl = attributes.following
if (attributes.endpoints && attributes.endpoints.sharedInbox) {
if (attributes.endpoints?.sharedInbox) {
actorInstance.sharedInboxUrl = attributes.endpoints.sharedInbox
}
}
@ -457,7 +457,7 @@ async function fetchRemoteActor (actorUrl: string): Promise<{ statusCode?: numbe
followersUrl: actorJSON.followers,
followingUrl: actorJSON.following,
sharedInboxUrl: actorJSON.endpoints && actorJSON.endpoints.sharedInbox
sharedInboxUrl: actorJSON.endpoints?.sharedInbox
? actorJSON.endpoints.sharedInbox
: null
})