aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/actor.ts4
-rw-r--r--server/lib/activitypub/audience.ts2
2 files changed, 3 insertions, 3 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 })
diff --git a/server/lib/activitypub/audience.ts b/server/lib/activitypub/audience.ts
index 551d04ae3..4b30d1f6f 100644
--- a/server/lib/activitypub/audience.ts
+++ b/server/lib/activitypub/audience.ts
@@ -55,7 +55,7 @@ async function getActorsInvolvedInVideo (video: MVideoId, t: Transaction) {
55 55
56 const videoAll = video as VideoModel 56 const videoAll = video as VideoModel
57 57
58 const videoActor = videoAll.VideoChannel && videoAll.VideoChannel.Account 58 const videoActor = videoAll.VideoChannel?.Account
59 ? videoAll.VideoChannel.Account.Actor 59 ? videoAll.VideoChannel.Account.Actor
60 : await ActorModel.loadFromAccountByVideoId(video.id, t) 60 : await ActorModel.loadFromAccountByVideoId(video.id, t)
61 61