dont ping users

This commit is contained in:
cutestnekoaqua 2023-03-29 20:01:56 +02:00
parent 12698bf1e8
commit 7650c60cdf
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 2 additions and 2 deletions

View File

@ -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}`);
}