mirror of
git://jb55.com/damus
synced 2024-09-30 00:40:45 +00:00
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:
parent
ba494f94ab
commit
2c9b280a04
@ -239,6 +239,11 @@ func should_translate(event: NostrEvent, our_keypair: Keypair, settings: UserSet
|
||||
guard settings.can_translate else {
|
||||
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
|
||||
// as we can assume the user can understand their own notes.
|
||||
|
Loading…
Reference in New Issue
Block a user