mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
fix string formatting of 'link not allowed'
This commit is contained in:
parent
b7f187e706
commit
0909256288
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(_(f"Links to %s are not allowed.".format(domain.name)))
|
||||
self.link_url.errors.append(_("Links to %s are not allowed." % (domain.name)))
|
||||
return False
|
||||
elif self.post_type.data == 'image':
|
||||
if self.image_title.data == '':
|
||||
|
|
Loading…
Reference in a new issue