]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lint
authorChocobozzz <me@florianbigard.com>
Tue, 19 Dec 2017 13:22:38 +0000 (14:22 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 19 Dec 2017 13:22:38 +0000 (14:22 +0100)
server/lib/activitypub/send/send-create.ts
server/lib/activitypub/share.ts
server/middlewares/servers.ts

index 249dd91dc846155f1dcb821621fe3a480a198812..27b03c45f79d22b9be0c500d251e0d5b1c8c69bd 100644 (file)
@@ -17,7 +17,7 @@ import {
 } 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()
index 386ae362a402253a138ed17b7f8667d0139efe77..294a6838d3ec699eb07f68a36b98789146c24009 100644 (file)
@@ -6,7 +6,7 @@ import { VideoShareModel } from '../../models/video/video-share'
 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()
 
index 87bbe9fd79f1b6c8b29babd97f31a373f347d5f3..e16bc4a86206fe20e1b5e3cd91d135b9718dd5e1 100644 (file)
@@ -1,9 +1,7 @@
-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()