1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add more filters to admin follows table

This commit is contained in:
Chocobozzz 2019-11-29 11:16:43 +01:00
parent 97ecddae10
commit cb5ce4cb13
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 23 additions and 13 deletions

View file

@ -23,7 +23,7 @@ import { logger } from '../../helpers/logger'
import { getServerActor } from '../../helpers/utils'
import { ACTOR_FOLLOW_SCORE, FOLLOW_STATES, SERVER_ACTOR_NAME } from '../../initializers/constants'
import { ServerModel } from '../server/server'
import { createSafeIn, getSort } from '../utils'
import { createSafeIn, getSort, getFollowsSort } from '../utils'
import { ActorModel, unusedActorAttributesForAPI } from './actor'
import { VideoChannelModel } from '../video/video-channel'
import { AccountModel } from '../account/account'
@ -324,7 +324,7 @@ export class ActorFollowModel extends Model<ActorFollowModel> {
distinct: true,
offset: start,
limit: count,
order: getSort(sort),
order: getFollowsSort(sort),
where: followWhere,
include: [
{
@ -391,7 +391,7 @@ export class ActorFollowModel extends Model<ActorFollowModel> {
distinct: true,
offset: start,
limit: count,
order: getSort(sort),
order: getFollowsSort(sort),
where: followWhere,
include: [
{