aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
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
parent982f2fc9b42537ca40ff29bf62c1ca3692d4b587 (diff)
downloadPeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.gz
PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.zst
PeerTube-faa9d434b4d681837ff2a87603337c2623419669.zip
Update server dependencies
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