nsfw and nsfl icons on posts - oops

This commit is contained in:
rimu 2024-02-16 06:34:56 +13:00
parent e1c86371a6
commit b864e223bc

View file

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