From cb5ce4cb13095dbea6e5f05b96eaa42ffccf0716 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Nov 2019 11:16:43 +0100 Subject: Add more filters to admin follows table --- server/models/activitypub/actor-follow.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/models/activitypub') diff --git a/server/models/activitypub/actor-follow.ts b/server/models/activitypub/actor-follow.ts index c3c4d61ab..c65b975d2 100644 --- a/server/models/activitypub/actor-follow.ts +++ b/server/models/activitypub/actor-follow.ts @@ -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 { distinct: true, offset: start, limit: count, - order: getSort(sort), + order: getFollowsSort(sort), where: followWhere, include: [ { @@ -391,7 +391,7 @@ export class ActorFollowModel extends Model { distinct: true, offset: start, limit: count, - order: getSort(sort), + order: getFollowsSort(sort), where: followWhere, include: [ { -- cgit v1.2.3