Check video channel name is unique on our instance

This commit is contained in:
Chocobozzz 2018-10-01 15:18:07 +02:00
parent 7361c401b1
commit 601527d795
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 31 additions and 6 deletions

View file

@ -56,7 +56,7 @@ async function getOrCreateActorAndServerAndModel (
// We don't have this actor in our database, fetch it on remote
if (!actor) {
const { result } = await fetchRemoteActor(actorUrl)
if (result === undefined) throw new Error('Cannot fetch remote actor.')
if (result === undefined) throw new Error('Cannot fetch remote actor ' + actorUrl)
// Create the attributed to actor
// In PeerTube a video channel is owned by an account