Update server dependencies
This commit is contained in:
parent
982f2fc9b4
commit
faa9d434b4
25 changed files with 1675 additions and 1473 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue