Fix: add done statements

This commit is contained in:
April John 2023-05-15 12:25:54 +00:00
parent 21c5b3665c
commit 38a5f4e543

View file

@ -24,10 +24,12 @@ export async function importMastoPost(
reply = await resolveNote(post.object.inReplyTo);
}
if (post.directMessage) {
done();
return;
}
if (job.data.signatureCheck) {
if (!post.signature) {
done();
return;
}
}
@ -35,6 +37,7 @@ export async function importMastoPost(
try {
text = htmlToMfm(post.object.content, post.object.tag);
} catch (e) {
done();
return;
}