From 2526b86ec5ba0a7efd5b2f4d67e017e12e56a321 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 30 Apr 2019 05:54:36 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20Mastodon=20v2.8.0=20=E3=81=AE=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AD=E3=83=BC=E3=83=AA=E3=82=B9=E3=83=88=E3=81=8C?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=88=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=20(#4817)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/queue/processors/db/import-following.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/queue/processors/db/import-following.ts b/src/queue/processors/db/import-following.ts index 069afa74c..3b3be99a3 100644 --- a/src/queue/processors/db/import-following.ts +++ b/src/queue/processors/db/import-following.ts @@ -34,7 +34,8 @@ export async function importFollowing(job: Bull.Job, done: any): Promise { linenum++; try { - const { username, host } = parseAcct(line.trim()); + const acct = line.split(',')[0].trim(); + const { username, host } = parseAcct(acct); let target = isSelfHost(host) ? await User.findOne({ host: null,