translations: only translate kind 1s
Deepl-Savings: 8k/year Reported-by: Semisol Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -240,6 +240,11 @@ func should_translate(event: NostrEvent, our_keypair: Keypair, settings: UserSet
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't translate reposts, longform, etc
|
||||||
|
if event.kind != 1 {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Do not translate self-authored notes if logged in with a private key
|
// Do not translate self-authored notes if logged in with a private key
|
||||||
// as we can assume the user can understand their own notes.
|
// as we can assume the user can understand their own notes.
|
||||||
// The detected language prediction could be incorrect and not in the list of preferred languages.
|
// The detected language prediction could be incorrect and not in the list of preferred languages.
|
||||||
|
|||||||
Reference in New Issue
Block a user