From b864e223bc75e30beb63fc9983b35d66807207d0 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 16 Feb 2024 06:34:56 +1300 Subject: [PATCH] nsfw and nsfl icons on posts - oops --- app/community/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/community/forms.py b/app/community/forms.py index fc05feb2..b3713012 100644 --- a/app/community/forms.py +++ b/app/community/forms.py @@ -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':