Some import and export fixes (#4842)

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

* Fix: エクスポートリクエストに失敗してもエラーが出ない (#4821)

* エクスポートファイルでは同一ハッシュチェックをしないように
This commit is contained in:
MeiMei
2019-05-03 18:33:25 +09:00
committed by syuilo
parent a09a3465a2
commit 9d1ed1eb0d
7 changed files with 18 additions and 12 deletions

View File

@@ -35,7 +35,8 @@ export async function importFollowing(job: Bull.Job, done: any): Promise<void> {
linenum++;
try {
const { username, host } = parseAcct(line.trim());
const acct = line.split(',')[0].trim();
const { username, host } = parseAcct(acct);
let target = isSelfHost(host!) ? await Users.findOne({
host: null,