Fix lint
This commit is contained in:
parent
0405ab52dc
commit
54b3806324
3 changed files with 3 additions and 5 deletions
|
@ -17,7 +17,7 @@ import {
|
||||||
} from './misc'
|
} from './misc'
|
||||||
|
|
||||||
async function sendCreateVideo (video: VideoModel, t: Transaction) {
|
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 byActor = video.VideoChannel.Account.Actor
|
||||||
const videoObject = video.toActivityPubObject()
|
const videoObject = video.toActivityPubObject()
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { VideoShareModel } from '../../models/video/video-share'
|
||||||
import { sendVideoAnnounceToFollowers } from './send'
|
import { sendVideoAnnounceToFollowers } from './send'
|
||||||
|
|
||||||
async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) {
|
async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) {
|
||||||
if (video.privacy === VideoPrivacy.PRIVATE) return
|
if (video.privacy === VideoPrivacy.PRIVATE) return undefined
|
||||||
|
|
||||||
const serverActor = await getServerActor()
|
const serverActor = await getServerActor()
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
import 'express-validator'
|
|
||||||
import * as express from 'express'
|
import * as express from 'express'
|
||||||
|
import 'express-validator'
|
||||||
import { getHostWithPort } from '../helpers'
|
import { getHostWithPort } from '../helpers'
|
||||||
|
|
||||||
import { REMOTE_SCHEME } from '../initializers'
|
|
||||||
|
|
||||||
function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) {
|
function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) {
|
||||||
if (!req.body.hosts) return next()
|
if (!req.body.hosts) return next()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue