aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/actor.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-17 10:55:40 +0200
committerChocobozzz <me@florianbigard.com>2020-06-17 11:42:50 +0200
commitfaa9d434b4d681837ff2a87603337c2623419669 (patch)
tree1f3c798dd6fd5f2dcbb019978f063f448c019974 /server/lib/activitypub/actor.ts
parent982f2fc9b42537ca40ff29bf62c1ca3692d4b587 (diff)
downloadPeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.gz
PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.zst
PeerTube-faa9d434b4d681837ff2a87603337c2623419669.zip
Update server dependencies
Diffstat (limited to 'server/lib/activitypub/actor.ts')
-rw-r--r--server/lib/activitypub/actor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts
index c743dcf3f..0e5742071 100644
--- a/server/lib/activitypub/actor.ts
+++ b/server/lib/activitypub/actor.ts
@@ -166,7 +166,7 @@ async function updateActorInstance (actorInstance: ActorModel, attributes: Activ
166 actorInstance.followersUrl = attributes.followers 166 actorInstance.followersUrl = attributes.followers
167 actorInstance.followingUrl = attributes.following 167 actorInstance.followingUrl = attributes.following
168 168
169 if (attributes.endpoints && attributes.endpoints.sharedInbox) { 169 if (attributes.endpoints?.sharedInbox) {
170 actorInstance.sharedInboxUrl = attributes.endpoints.sharedInbox 170 actorInstance.sharedInboxUrl = attributes.endpoints.sharedInbox
171 } 171 }
172} 172}
@@ -457,7 +457,7 @@ async function fetchRemoteActor (actorUrl: string): Promise<{ statusCode?: numbe
457 followersUrl: actorJSON.followers, 457 followersUrl: actorJSON.followers,
458 followingUrl: actorJSON.following, 458 followingUrl: actorJSON.following,
459 459
460 sharedInboxUrl: actorJSON.endpoints && actorJSON.endpoints.sharedInbox 460 sharedInboxUrl: actorJSON.endpoints?.sharedInbox
461 ? actorJSON.endpoints.sharedInbox 461 ? actorJSON.endpoints.sharedInbox
462 : null 462 : null
463 }) 463 })