summaryrefslogtreecommitdiff
path: root/app/lib
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-11-19 21:17:45 -0500
committerluxagraf <sng@luxagraf.net>2020-11-19 21:17:45 -0500
commite796d847df0492391b1e7bde84fb564e49b75f79 (patch)
tree6d53dcfe0b6a40da08b30e1eb24cd46bc651d975 /app/lib
parent18a86bb882daeda3c9170a0f608386dbb42929eb (diff)
added prologue to essays and a special catchall to stop some persistant
spam.
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/django_comments/views/comments.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/lib/django_comments/views/comments.py b/app/lib/django_comments/views/comments.py
index 40dfc60..22e061c 100644
--- a/app/lib/django_comments/views/comments.py
+++ b/app/lib/django_comments/views/comments.py
@@ -123,12 +123,13 @@ def post_comment(request, next=None, using=None):
"comment_will_be_posted receiver %r killed the comment" % receiver.__name__)
# Save the comment and signal that it was saved
- comment.save()
- signals.comment_was_posted.send(
- sender=comment.__class__,
- comment=comment,
- request=request
- )
+ if comment.user != 'HenryLom':
+ comment.save()
+ signals.comment_was_posted.send(
+ sender=comment.__class__,
+ comment=comment,
+ request=request
+ )
return next_redirect(request, fallback=next or 'comments-comment-done',
c=comment._get_pk_val())