Skip to content

Commit

Permalink
removed NewCommentNotification dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
djamg committed Oct 26, 2023
1 parent 27a3d58 commit 4991d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion funnel/models/notification_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class NewCommentNotification(Notification[Commentset, Comment], type='comment_ne
title = __("When there is a new comment on something I’m involved in")
exclude_actor = True

roles = ['replied_to_commenter', 'project_crew']
roles = ['replied_to_commenter', 'document_subscriber']


class CommentReplyNotification(Notification[Comment, Comment], type='comment_reply'):
Expand Down
5 changes: 1 addition & 4 deletions funnel/views/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,7 @@ def reply(self) -> ReturnView:
self.obj,
)
dispatch_notification(
CommentReplyNotification(
document=comment.in_reply_to, fragment=comment
),
NewCommentNotification(document=comment.commentset, fragment=comment),
CommentReplyNotification(document=comment.in_reply_to, fragment=comment)
)
return {
'status': 'ok',
Expand Down

0 comments on commit 4991d3c

Please sign in to comment.