From 85c20aaeb90ef0e0f44c377e62c323fde275cdde Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 May 2023 16:16:27 +0200 Subject: Set actor preferred name case insensitive --- server/models/account/account-video-rate.ts | 6 ++++-- server/models/account/account.ts | 10 +++------- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'server/models/account') diff --git a/server/models/account/account-video-rate.ts b/server/models/account/account-video-rate.ts index 9e7ef4394..18ff07d53 100644 --- a/server/models/account/account-video-rate.ts +++ b/server/models/account/account-video-rate.ts @@ -189,8 +189,10 @@ export class AccountVideoRateModel extends Model>> { { model: ActorModel, required: true, - where: { - preferredUsername: name - } + where: ActorModel.wherePreferredUsername(name) } ] } @@ -321,9 +319,7 @@ export class AccountModel extends Model>> { { model: ActorModel, required: true, - where: { - preferredUsername: name - }, + where: ActorModel.wherePreferredUsername(name), include: [ { model: ServerModel, -- cgit v1.2.3