mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
remove debug msgs
This commit is contained in:
parent
69daa49403
commit
7a31740e20
@ -44,15 +44,12 @@ export async function importPosts(
|
||||
try {
|
||||
linenum++;
|
||||
if (post.replyId != null) {
|
||||
logger.info(`Is reply, skip [${linenum}] ...`);
|
||||
continue;
|
||||
}
|
||||
if (post.renoteId != null) {
|
||||
logger.info(`Is boost, skip [${linenum}] ...`);
|
||||
continue;
|
||||
}
|
||||
if (post.visibility !== "public") {
|
||||
logger.info(`Is non-public, skip [${linenum}] ...`);
|
||||
continue;
|
||||
}
|
||||
const { text, cw, localOnly, createdAt } = Post.parse(post);
|
||||
@ -85,18 +82,15 @@ export async function importPosts(
|
||||
try {
|
||||
linenum++;
|
||||
if (post.object.inReplyTo != null) {
|
||||
logger.info(`Is reply, skip [${linenum}] ...`);
|
||||
continue;
|
||||
}
|
||||
if (post.directMessage) {
|
||||
logger.info(`Is dm, skip [${linenum}] ...`);
|
||||
continue;
|
||||
}
|
||||
let text;
|
||||
try {
|
||||
text = htmlToMfm(post.object.content, post.object.tag);
|
||||
} catch (e) {
|
||||
logger.warn(`Error while parsing text in line ${linenum}: ${e}`);
|
||||
continue;
|
||||
}
|
||||
logger.info(`Posting[${linenum}] ...`);
|
||||
|
Loading…
Reference in New Issue
Block a user