| |
@@ -292,15 +292,6 @@
|
| |
if comment.user.default_email:
|
| |
emails.add(comment.user.default_email)
|
| |
|
| |
- # Add the person that opened the issue/PR
|
| |
- if obj.user.default_email:
|
| |
- emails.add(obj.user.default_email)
|
| |
-
|
| |
- # Add the person assigned to the issue/PR
|
| |
- if obj.isa in ["issue", "pull-request"]:
|
| |
- if obj.assignee and obj.assignee.default_email:
|
| |
- emails.add(obj.assignee.default_email)
|
| |
-
|
| |
# Add public notifications to lists/users set project-wide
|
| |
if obj.isa == "issue" and not obj.private:
|
| |
for notifs in obj.project.notifications.get("issues", []):
|
| |
@@ -337,6 +328,15 @@
|
| |
),
|
| |
)
|
| |
|
| |
+ # Add the person that opened the issue/PR
|
| |
+ if obj.user.default_email:
|
| |
+ emails.add(obj.user.default_email)
|
| |
+
|
| |
+ # Add the person assigned to the issue/PR
|
| |
+ if obj.isa in ["issue", "pull-request"]:
|
| |
+ if obj.assignee and obj.assignee.default_email:
|
| |
+ emails.add(obj.assignee.default_email)
|
| |
+
|
| |
return emails
|
| |
|
| |
|
| |
Fixes https://pagure.io/pagure/issue/2324