Add ability to search a video with an URL

This commit is contained in:
Chocobozzz 2018-08-22 11:51:39 +02:00
parent 22a16e36f6
commit f6eebcb336
19 changed files with 244 additions and 135 deletions

View file

@ -177,7 +177,8 @@ async function addFetchOutboxJob (actor: ActorModel) {
}
const payload = {
uris: [ actor.outboxUrl ]
uri: actor.outboxUrl,
type: 'activity' as 'activity'
}
return JobQueue.Instance.createJob({ type: 'activitypub-http-fetcher', payload })
@ -248,6 +249,7 @@ function saveActorAndServerAndModelIfNotExist (
} else if (actorCreated.type === 'Group') { // Video channel
actorCreated.VideoChannel = await saveVideoChannel(actorCreated, result, ownerActor, t)
actorCreated.VideoChannel.Actor = actorCreated
actorCreated.VideoChannel.Account = ownerActor.Account
}
return actorCreated