mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
I know this looks weird but this is how flask_babel (string translation package) wants it done
This commit is contained in:
parent
12545379b3
commit
690bb34eff
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class CreatePostForm(FlaskForm):
|
|||
return False
|
||||
domain = domain_from_url(self.link_url.data, create=False)
|
||||
if domain and domain.banned:
|
||||
self.link_url.errors.append(_("Links to %s are not allowed." % (domain.name)))
|
||||
self.link_url.errors.append(_("Links to %(domain)s are not allowed.", domain=domain.name))
|
||||
return False
|
||||
elif self.post_type.data == 'image':
|
||||
if self.image_title.data == '':
|
||||
|
|
Loading…
Reference in a new issue