Fix Gettext metadata shown on empty tag description

Fixes #541
This commit is contained in:
rubenwardy 2024-06-09 13:22:07 +01:00
parent 5eb202941a
commit 2869876b67

@ -1011,7 +1011,7 @@ class Tag(db.Model):
# Translations are automated on dynamic data using `extract_translations.py`
return {
"title": gettext(self.title),
"description": gettext(self.description),
"description": gettext(self.description) if self.description else "",
}
def as_dict(self):