Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ella_flatcomments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ def post_comment(self, comment, request=None):
return False, "comment_will_be_posted receiver %r killed the comment" % receiver.__name__
new = not bool(comment.pk)
comment.save()
if new and comment.is_public:
# if new and comment.is_public:
# add comment to redis
redis.lpush(self._key, comment.id)
comment_was_posted.send(FlatComment, comment=comment, request=request)
redis.lpush(self._key, comment.id)
comment_was_posted.send(FlatComment, comment=comment, request=request)
return True, None

def moderate_comment(self, comment, user=None, commit=True):
Expand Down