fix: check if translation exists before processing in background

This commit is contained in:
Adolfo Reyna
2026-02-25 18:49:44 -05:00
parent c5fd09d71d
commit e8dd905f27

View File

@@ -507,6 +507,8 @@ DB.getDB.then((DB) => {
// To avoid huge translations or mostly-media posts
if (post.content.length > 1000) return;
if (post.translations && post.translations[targetLang]) return;
const translation = await translateText({
text: post.content,
sourceLang: "auto",