From f5b0af50c85e2f8b6b2b054ac1f47123cacbe08d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Aug 2018 11:04:02 +0200 Subject: Search video channel handle/uri --- server/models/activitypub/actor-follow.ts | 10 ++++------ server/models/activitypub/actor.ts | 4 +++- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'server/models/activitypub') diff --git a/server/models/activitypub/actor-follow.ts b/server/models/activitypub/actor-follow.ts index ebb2d47c2..8bc095997 100644 --- a/server/models/activitypub/actor-follow.ts +++ b/server/models/activitypub/actor-follow.ts @@ -325,15 +325,13 @@ export class ActorFollowModel extends Model { }, include: [ { - attributes: { - exclude: unusedActorAttributesForAPI - }, - model: ActorModel, + attributes: [ 'id' ], + model: ActorModel.unscoped(), as: 'ActorFollowing', required: true, include: [ { - model: VideoChannelModel, + model: VideoChannelModel.unscoped(), required: true, include: [ { @@ -344,7 +342,7 @@ export class ActorFollowModel extends Model { required: true }, { - model: AccountModel, + model: AccountModel.unscoped(), required: true, include: [ { diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts index e16bd5d79..119d0c1da 100644 --- a/server/models/activitypub/actor.ts +++ b/server/models/activitypub/actor.ts @@ -50,7 +50,9 @@ export const unusedActorAttributesForAPI = [ 'sharedInboxUrl', 'followersUrl', 'followingUrl', - 'url' + 'url', + 'createdAt', + 'updatedAt' ] @DefaultScope({ -- cgit v1.2.3