do not send notifications for comments user created himself
authorraph
Wed, 05 May 2010 16:50:41 +0200
changeset 267 526d9178e290
parent 266 33eb2ee6b9de
child 268 f4860664e913
do not send notifications for comments user created himself
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)