pl-fe: oops

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-12-11 14:38:08 +01:00
parent 11331dacf4
commit f797624ecc

View File

@ -21,7 +21,7 @@ const canRemoteTranslate = (status: ITranslateButton['status'], instance: Instan
allow_unauthenticated: allowUnauthenticated,
} = instance.pleroma.metadata.translation;
if (status.content.length > 0) return false;
if (status.content.length < 0) return false;
// TODO: support language detection
if (status.language === null || locale === status.language || status.content_map?.[locale]) return false;