]> git.ipfire.org Git - pbs.git/commitdiff
builds: Don't notify the poster
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Oct 2022 15:53:52 +0000 (15:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Oct 2022 15:53:52 +0000 (15:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py

index 34a60aaf4f4517192c631869cb14584b097db05c..7b077630882a4ee4323ae3f39201110a695b1a1a 100644 (file)
@@ -746,6 +746,14 @@ class Comment(base.DataObject):
                return self.data.score
 
        def notify(self):
-               for watcher in self.build.watchers:
-                       watcher.send_email("builds/messages/comment.txt",
+               """
+                       Notifies all watchers about this comment
+               """
+               for user in self.build.watchers:
+                       # Skip the user who posted it
+                       if user == self.user:
+                               continue
+
+                       # Send an email
+                       user.send_email("builds/messages/comment.txt",
                                build=self.build, comment=self)