diff options
Diffstat (limited to 'server/lib/activitypub/actor.ts')
-rw-r--r-- | server/lib/activitypub/actor.ts | 4 |
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 | }) |