mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
nsfw and nsfl icons on posts - oops
This commit is contained in:
parent
e1c86371a6
commit
b864e223bc
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class CreatePostForm(FlaskForm):
|
|||
current_user.reputation -= 1
|
||||
db.session.commit()
|
||||
return False
|
||||
community = Community.query.get(self.communities.data).first()
|
||||
community = Community.query.get(self.communities.data)
|
||||
if community.is_local() and g.site.allow_local_image_posts is False:
|
||||
self.communities.errors.append(_('Images cannot be posted to local communities.'))
|
||||
elif self.post_type.data == 'poll':
|
||||
|
|
Loading…
Reference in a new issue