diff options
Diffstat (limited to 'server/lib/activitypub/actor.ts')
-rw-r--r-- | server/lib/activitypub/actor.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts index d84b465b2..9922229d2 100644 --- a/server/lib/activitypub/actor.ts +++ b/server/lib/activitypub/actor.ts | |||
@@ -177,7 +177,8 @@ async function addFetchOutboxJob (actor: ActorModel) { | |||
177 | } | 177 | } |
178 | 178 | ||
179 | const payload = { | 179 | const payload = { |
180 | uris: [ actor.outboxUrl ] | 180 | uri: actor.outboxUrl, |
181 | type: 'activity' as 'activity' | ||
181 | } | 182 | } |
182 | 183 | ||
183 | return JobQueue.Instance.createJob({ type: 'activitypub-http-fetcher', payload }) | 184 | return JobQueue.Instance.createJob({ type: 'activitypub-http-fetcher', payload }) |
@@ -248,6 +249,7 @@ function saveActorAndServerAndModelIfNotExist ( | |||
248 | } else if (actorCreated.type === 'Group') { // Video channel | 249 | } else if (actorCreated.type === 'Group') { // Video channel |
249 | actorCreated.VideoChannel = await saveVideoChannel(actorCreated, result, ownerActor, t) | 250 | actorCreated.VideoChannel = await saveVideoChannel(actorCreated, result, ownerActor, t) |
250 | actorCreated.VideoChannel.Actor = actorCreated | 251 | actorCreated.VideoChannel.Actor = actorCreated |
252 | actorCreated.VideoChannel.Account = ownerActor.Account | ||
251 | } | 253 | } |
252 | 254 | ||
253 | return actorCreated | 255 | return actorCreated |