From 54b38063249c0c903f13491eaa84f502f4dffe79 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Dec 2017 14:22:38 +0100 Subject: Fix lint --- server/lib/activitypub/send/send-create.ts | 2 +- server/lib/activitypub/share.ts | 2 +- server/middlewares/servers.ts | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/server/lib/activitypub/send/send-create.ts b/server/lib/activitypub/send/send-create.ts index 249dd91dc..27b03c45f 100644 --- a/server/lib/activitypub/send/send-create.ts +++ b/server/lib/activitypub/send/send-create.ts @@ -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() diff --git a/server/lib/activitypub/share.ts b/server/lib/activitypub/share.ts index 386ae362a..294a6838d 100644 --- a/server/lib/activitypub/share.ts +++ b/server/lib/activitypub/share.ts @@ -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() diff --git a/server/middlewares/servers.ts b/server/middlewares/servers.ts index 87bbe9fd7..e16bc4a86 100644 --- a/server/middlewares/servers.ts +++ b/server/middlewares/servers.ts @@ -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() -- cgit v1.2.3