check for signatures while post import

This commit is contained in:
cutestnekoaqua 2023-03-30 17:52:17 +02:00
parent 09aeb6e2f5
commit 897b5f928d
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ export async function importPosts(
if (post.directMessage) { if (post.directMessage) {
continue; continue;
} }
if (job.data.signatureCheck) {
if(!post.signature) {
continue;
}
}
let text; let text;
try { try {
text = htmlToMfm(post.object.content, post.object.tag); text = htmlToMfm(post.object.content, post.object.tag);