mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36: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
|
return False
|
||||||
domain = domain_from_url(self.link_url.data, create=False)
|
domain = domain_from_url(self.link_url.data, create=False)
|
||||||
if domain and domain.banned:
|
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
|
return False
|
||||||
elif self.post_type.data == 'image':
|
elif self.post_type.data == 'image':
|
||||||
if self.image_title.data == '':
|
if self.image_title.data == '':
|
||||||
|
|
Loading…
Add table
Reference in a new issue