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:
parent
8e13fa7d09
commit
8e10cf1a5a
12 changed files with 59 additions and 44 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue