From e4f97babf701481b55cc10fb3448feab5f97c867 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Nov 2017 17:51:58 +0100 Subject: Begin activitypub --- server/lib/video-channel.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/lib/video-channel.ts') diff --git a/server/lib/video-channel.ts b/server/lib/video-channel.ts index 678ffe643..a6dd4d061 100644 --- a/server/lib/video-channel.ts +++ b/server/lib/video-channel.ts @@ -3,15 +3,15 @@ import * as Sequelize from 'sequelize' import { addVideoChannelToFriends } from './friends' import { database as db } from '../initializers' import { logger } from '../helpers' -import { AuthorInstance } from '../models' +import { AccountInstance } from '../models' import { VideoChannelCreate } from '../../shared/models' -async function createVideoChannel (videoChannelInfo: VideoChannelCreate, author: AuthorInstance, t: Sequelize.Transaction) { +async function createVideoChannel (videoChannelInfo: VideoChannelCreate, account: AccountInstance, t: Sequelize.Transaction) { const videoChannelData = { name: videoChannelInfo.name, description: videoChannelInfo.description, remote: false, - authorId: author.id + authorId: account.id } const videoChannel = db.VideoChannel.build(videoChannelData) @@ -19,8 +19,8 @@ async function createVideoChannel (videoChannelInfo: VideoChannelCreate, author: const videoChannelCreated = await videoChannel.save(options) - // Do not forget to add Author information to the created video channel - videoChannelCreated.Author = author + // Do not forget to add Account information to the created video channel + videoChannelCreated.Account = account const remoteVideoChannel = videoChannelCreated.toAddRemoteJSON() -- cgit v1.2.3