1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Fix video upload and videos list

This commit is contained in:
Chocobozzz 2017-11-15 16:28:35 +01:00
parent 8e13fa7d09
commit 8e10cf1a5a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
12 changed files with 59 additions and 44 deletions

View file

@ -11,6 +11,7 @@ import { signObject, activityPubContextify } from '../../helpers'
import { Activity } from '../../../shared'
import { VideoAbuseInstance } from '../../models/video/video-abuse-interface'
import { getActivityPubUrl } from '../../helpers/activitypub'
import { logger } from '../../helpers/logger'
async function sendCreateVideoChannel (videoChannel: VideoChannelInstance, t: Sequelize.Transaction) {
const videoChannelObject = videoChannel.toActivityPubObject()
@ -100,7 +101,11 @@ export {
// ---------------------------------------------------------------------------
async function broadcastToFollowers (data: any, fromAccount: AccountInstance, t: Sequelize.Transaction) {
const result = await db.AccountFollow.listAcceptedFollowerUrlsForApi(fromAccount.id, 0)
const result = await db.AccountFollow.listAcceptedFollowerUrlsForApi(fromAccount.id)
if (result.data.length === 0) {
logger.info('Not broadcast because of 0 followers.')
return
}
const jobPayload = {
uris: result.data,