mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Follow works
This commit is contained in:
parent
e34c85e527
commit
350e31d6b6
39 changed files with 431 additions and 169 deletions
|
@ -1,11 +1,10 @@
|
|||
import { body } from 'express-validator/check'
|
||||
import * as express from 'express'
|
||||
|
||||
import { logger, isRootActivityValid } from '../../../helpers'
|
||||
import { body } from 'express-validator/check'
|
||||
import { isRootActivityValid, logger } from '../../../helpers'
|
||||
import { checkErrors } from '../utils'
|
||||
|
||||
const activityPubValidator = [
|
||||
body('data').custom(isRootActivityValid),
|
||||
body('').custom((value, { req }) => isRootActivityValid(req.body)),
|
||||
|
||||
(req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
logger.debug('Checking activity pub parameters', { parameters: req.body })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue