remove debug msgs

This commit is contained in:
Cleo 2023-03-30 09:30:38 +00:00
parent a3c0d56600
commit 00dc860574
1 changed files with 0 additions and 6 deletions

View File

@ -44,15 +44,12 @@ export async function importPosts(
try { try {
linenum++; linenum++;
if (post.replyId != null) { if (post.replyId != null) {
logger.info(`Is reply, skip [${linenum}] ...`);
continue; continue;
} }
if (post.renoteId != null) { if (post.renoteId != null) {
logger.info(`Is boost, skip [${linenum}] ...`);
continue; continue;
} }
if (post.visibility !== "public") { if (post.visibility !== "public") {
logger.info(`Is non-public, skip [${linenum}] ...`);
continue; continue;
} }
const { text, cw, localOnly, createdAt } = Post.parse(post); const { text, cw, localOnly, createdAt } = Post.parse(post);
@ -85,18 +82,15 @@ export async function importPosts(
try { try {
linenum++; linenum++;
if (post.object.inReplyTo != null) { if (post.object.inReplyTo != null) {
logger.info(`Is reply, skip [${linenum}] ...`);
continue; continue;
} }
if (post.directMessage) { if (post.directMessage) {
logger.info(`Is dm, skip [${linenum}] ...`);
continue; continue;
} }
let text; let text;
try { try {
text = htmlToMfm(post.object.content, post.object.tag); text = htmlToMfm(post.object.content, post.object.tag);
} catch (e) { } catch (e) {
logger.warn(`Error while parsing text in line ${linenum}: ${e}`);
continue; continue;
} }
logger.info(`Posting[${linenum}] ...`); logger.info(`Posting[${linenum}] ...`);