1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Move middleware utils in middlewares

helpers modules should not import models
This commit is contained in:
Chocobozzz 2021-06-03 17:33:44 +02:00
parent 5e08989ede
commit 10363c74c1
No known key found for this signature in database
GPG key ID: 583A612D890159BE
68 changed files with 345 additions and 342 deletions

View file

@ -14,8 +14,7 @@ import { VideoChannelsSearchQuery, VideosSearchQuery } from '../../../shared/mod
import { buildNSFWFilter, isUserAbleToSearchRemoteURI } from '../../helpers/express-utils'
import { logger } from '../../helpers/logger'
import { getFormattedObjects } from '../../helpers/utils'
import { loadActorUrlOrGetFromWebfinger } from '../../helpers/webfinger'
import { getOrCreateAPActor } from '../../lib/activitypub/actors'
import { getOrCreateAPActor, loadActorUrlOrGetFromWebfinger } from '../../lib/activitypub/actors'
import {
asyncMiddleware,
commonVideosFiltersValidator,