} from './misc'
async function sendCreateVideo (video: VideoModel, t: Transaction) {
- if (video.privacy === VideoPrivacy.PRIVATE) return
+ if (video.privacy === VideoPrivacy.PRIVATE) return undefined
const byActor = video.VideoChannel.Account.Actor
const videoObject = video.toActivityPubObject()
import { sendVideoAnnounceToFollowers } from './send'
async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) {
- if (video.privacy === VideoPrivacy.PRIVATE) return
+ if (video.privacy === VideoPrivacy.PRIVATE) return undefined
const serverActor = await getServerActor()
-import 'express-validator'
import * as express from 'express'
+import 'express-validator'
import { getHostWithPort } from '../helpers'
-import { REMOTE_SCHEME } from '../initializers'
-
function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) {
if (!req.body.hosts) return next()