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:
parent
97ecddae10
commit
cb5ce4cb13
5 changed files with 23 additions and 13 deletions
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue