Skip to content

Commit

Permalink
Disable comments auto-subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k authored and glader committed Nov 1, 2021
1 parent af29971 commit 578392e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions comments/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ def create_comment(request, post_slug):
SearchIndex.update_comment_index(comment)
LinkedPost.create_links_from_text(post, comment.text)

# auto-subscribe user to top level comments (if not reply)
if not comment.reply_to_id:
PostSubscription.subscribe(
user=request.me,
post=post,
type=PostSubscription.TYPE_TOP_LEVEL_ONLY,
)

return redirect(
reverse("show_post", kwargs={
"post_type": post.type,
Expand Down

0 comments on commit 578392e

Please sign in to comment.