don't translate empty string
This commit is contained in:
parent
6e4283ad26
commit
b49ed95f05
1 changed files with 2 additions and 0 deletions
|
@ -271,6 +271,8 @@ class MastodonEmailBridge:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def _translate(self, text, source_language='auto', destination_language=None):
|
def _translate(self, text, source_language='auto', destination_language=None):
|
||||||
|
if text == '':
|
||||||
|
return ''
|
||||||
if destination_language is None:
|
if destination_language is None:
|
||||||
destination_language = self.config['destination_language']
|
destination_language = self.config['destination_language']
|
||||||
data = {
|
data = {
|
||||||
|
|
Loading…
Reference in a new issue