From d3832f2560f1520422286f8d524b075042cf06aa Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 12:51:38 +0200 Subject: [PATCH] upd: return @ before username --- packages/megalodon/src/misskey/api_client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index ce34ebaf52..6266a64cda 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -72,10 +72,10 @@ namespace MisskeyAPI { host ? host = host.replace("https://", "") : null; let acct = u.username if (host) { - acct = `${u.username}@${host}` + acct = `@${u.username}@${host}` } if (u.host) { - acct = `${u.username}@${u.host}` + acct = `@${u.username}@${u.host}` } return { id: u.id, @@ -108,10 +108,10 @@ namespace MisskeyAPI { host ? host = host.replace("https://", "") : null; let acct = u.username if (host) { - acct = `${u.username}@${host}` + acct = `@${u.username}@${host}` } if (u.host) { - acct = `${u.username}@${u.host}` + acct = `@${u.username}@${u.host}` } return { id: u.id,