Fix: Mastodon v2.8.0 のフォローリストがインポートできない (#4817)

This commit is contained in:
MeiMei 2019-04-30 05:54:36 +09:00 committed by syuilo
parent e45aa0532c
commit 2526b86ec5

View file

@ -34,7 +34,8 @@ export async function importFollowing(job: Bull.Job, done: any): Promise<void> {
linenum++; linenum++;
try { 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({ let target = isSelfHost(host) ? await User.findOne({
host: null, host: null,