From: Michael Tremer Date: Thu, 13 Oct 2022 15:53:52 +0000 (+0000) Subject: builds: Don't notify the poster X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c88de4e7731a3618d4b82fadcfa8a8331bbc225a;p=pbs.git builds: Don't notify the poster Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 34a60aaf..7b077630 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -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)