# HG changeset patch # User raph # Date 1273071041 -7200 # Node ID 526d9178e290d1df2bea61a76f15cd1ce326d5d3 # Parent 33eb2ee6b9def841b432659d11725d864246cdcd do not send notifications for comments user created himself diff -r 33eb2ee6b9de -r 526d9178e290 src/cm/notifications.py --- a/src/cm/notifications.py Wed May 05 16:37:57 2010 +0200 +++ b/src/cm/notifications.py Wed May 05 16:50:41 2010 +0200 @@ -35,7 +35,7 @@ Comment.objects.filter(id__in = [activity.comment.id]), text=activity.text) if viewable and \ - ((notification.type == 'own' and activity.comment.top_comment().user == notification.user) or + ((notification.type == 'own' and activity.comment.user != notification.user and activity.comment.top_comment().user == notification.user) or (notification.type != 'own')): if not notification.user in allready_notified: send_notification(activity, notification)