From 7650c60cdfd65fde3664ed6b2b5fd1246c43c230 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 29 Mar 2023 20:01:56 +0200 Subject: [PATCH] dont ping users --- packages/backend/src/queue/processors/db/import-posts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/queue/processors/db/import-posts.ts b/packages/backend/src/queue/processors/db/import-posts.ts index b7e6b87d38..36e183c1ea 100644 --- a/packages/backend/src/queue/processors/db/import-posts.ts +++ b/packages/backend/src/queue/processors/db/import-posts.ts @@ -38,6 +38,7 @@ export async function importPosts( try { for (const post of JSON.parse(json)) { try { + linenum++; if (post.replyId != null) { logger.info(`Is reply, skip [${linenum}] ...`); continue; @@ -66,11 +67,10 @@ export async function importPosts( visibility: "public", visibleUsers: [], channel: null, - apMentions: undefined, + apMentions: null, apHashtags: undefined, apEmojis: undefined, }); - linenum++; } catch (e) { logger.warn(`Error in line:${linenum} ${e}`); }