fix string formatting of 'link not allowed'

This commit is contained in:
rra 2024-03-07 12:39:14 +01:00
parent b7f187e706
commit 0909256288

View file

@ -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 == '':