diff --git a/trac/ticket/notification.py b/trac/ticket/notification.py
index 92957d016..e34cda923 100644
a
|
b
|
class TicketAttachmentNotifier(Component):
|
896 | 896 | |
897 | 897 | def attachment_added(self, attachment): |
898 | 898 | self._notify_attachment(attachment, 'attachment added', |
899 | | attachment.date) |
| 899 | attachment.date, attachment.author) |
900 | 900 | |
901 | 901 | def attachment_deleted(self, attachment): |
902 | | self._notify_attachment(attachment, 'attachment deleted', None) |
| 902 | self._notify_attachment(attachment, 'attachment deleted', None, None) |
903 | 903 | |
904 | 904 | def attachment_reparented(self, attachment, old_parent_realm, |
905 | 905 | old_parent_id): |
… |
… |
class TicketAttachmentNotifier(Component):
|
907 | 907 | |
908 | 908 | # Internal methods |
909 | 909 | |
910 | | def _notify_attachment(self, attachment, category, time): |
| 910 | def _notify_attachment(self, attachment, category, time, author): |
911 | 911 | resource = attachment.resource.parent |
912 | 912 | if resource.realm != 'ticket': |
913 | 913 | return |
914 | 914 | ticket = Ticket(self.env, resource.id) |
915 | | event = TicketChangeEvent(category, ticket, time, ticket['reporter'], |
| 915 | event = TicketChangeEvent(category, ticket, time, author, |
916 | 916 | attachment=attachment) |
917 | 917 | try: |
918 | 918 | NotificationSystem(self.env).notify(event) |