From ba2684ceddf9b76312635b9cddc6bf6975ce436a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jul 2022 11:58:01 +0200 Subject: Fix lint --- shared/server-commands/requests/requests.ts | 2 +- shared/server-commands/search/search-command.ts | 2 +- shared/server-commands/users/login-command.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'shared/server-commands') diff --git a/shared/server-commands/requests/requests.ts b/shared/server-commands/requests/requests.ts index 95e4fe6b1..a08a6e0b9 100644 --- a/shared/server-commands/requests/requests.ts +++ b/shared/server-commands/requests/requests.ts @@ -52,7 +52,7 @@ function makeActivityPubGetRequest (url: string, path: string, expectedStatus = return makeGetRequest({ url, path, - expectedStatus: expectedStatus, + expectedStatus, accept: 'application/activity+json,text/html;q=0.9,\\*/\\*;q=0.8' }) } diff --git a/shared/server-commands/search/search-command.ts b/shared/server-commands/search/search-command.ts index 0fbbcd6ef..a5b498b66 100644 --- a/shared/server-commands/search/search-command.ts +++ b/shared/server-commands/search/search-command.ts @@ -74,7 +74,7 @@ export class SearchCommand extends AbstractCommand { ...options, search: { - search: search, + search, sort: sort ?? '-publishedAt' } }) diff --git a/shared/server-commands/users/login-command.ts b/shared/server-commands/users/login-command.ts index 143f72a59..54070e426 100644 --- a/shared/server-commands/users/login-command.ts +++ b/shared/server-commands/users/login-command.ts @@ -60,7 +60,7 @@ export class LoginCommand extends AbstractCommand { const body = { client_id: this.server.store.client.id, client_secret: this.server.store.client.secret, - username: username, + username, response_type: 'code', grant_type: 'password', scope: 'upload', -- cgit v1.2.3