aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-04-20 11:20:12 +0200
committerRigel Kent <par@rigelk.eu>2020-05-01 16:41:02 +0200
commit0251197e249cc03b65805ed6805da72bf4573529 (patch)
tree3aae202fd1ea24bac5cd7f2c380ffe50aae189a0 /server/models/account
parentb8cf27c0f86d205a279d03b83e0e6728f46da67f (diff)
downloadPeerTube-0251197e249cc03b65805ed6805da72bf4573529.tar.gz
PeerTube-0251197e249cc03b65805ed6805da72bf4573529.tar.zst
PeerTube-0251197e249cc03b65805ed6805da72bf4573529.zip
Factorize rest-table and fix/simplify SQL
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/account-blocklist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/account-blocklist.ts b/server/models/account/account-blocklist.ts
index fe2d5d010..d8a7ce4b4 100644
--- a/server/models/account/account-blocklist.ts
+++ b/server/models/account/account-blocklist.ts
@@ -133,8 +133,8 @@ export class AccountBlocklistModel extends Model<AccountBlocklistModel> {
133 if (search) { 133 if (search) {
134 Object.assign(where, { 134 Object.assign(where, {
135 [Op.or]: [ 135 [Op.or]: [
136 { ...searchAttribute(search, '$BlockedAccount.name$') }, 136 searchAttribute(search, '$BlockedAccount.name$'),
137 { ...searchAttribute(search, '$BlockedAccount.Actor.url$') } 137 searchAttribute(search, '$BlockedAccount.Actor.url$')
138 ] 138 ]
139 }) 139 })
140 } 140 }