mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
bug when editing post
This commit is contained in:
parent
c0f526d70f
commit
5c5c28a4a3
1 changed files with 4 additions and 3 deletions
|
@ -136,6 +136,7 @@ class CreatePostForm(FlaskForm):
|
||||||
current_user.reputation -= 1
|
current_user.reputation -= 1
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
return False
|
return False
|
||||||
|
if self.communities:
|
||||||
community = Community.query.get(self.communities.data)
|
community = Community.query.get(self.communities.data)
|
||||||
if community.is_local() and g.site.allow_local_image_posts is False:
|
if community.is_local() and g.site.allow_local_image_posts is False:
|
||||||
self.communities.errors.append(_('Images cannot be posted to local communities.'))
|
self.communities.errors.append(_('Images cannot be posted to local communities.'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue