| 2 | |
| 3 | {{{#!diff |
| 4 | diff --git a/trac/ticket/notification.py b/trac/ticket/notification.py |
| 5 | index cace8ee..d34e3ee 100644 |
| 6 | --- a/trac/ticket/notification.py |
| 7 | +++ b/trac/ticket/notification.py |
| 8 | @@ -502,19 +502,13 @@ class TicketAttachmentNotifier(Component): |
| 9 | |
| 10 | implements(IAttachmentChangeListener) |
| 11 | |
| 12 | - ticket_notify_attachment = BoolOption('notification', |
| 13 | - 'ticket_notify_attachment', True, |
| 14 | - """Always send notifications on ticket attachment events.""") |
| 15 | - |
| 16 | # IAttachmentChangeListener methods |
| 17 | |
| 18 | def attachment_added(self, attachment): |
| 19 | - if self.ticket_notify_attachment: |
| 20 | - self._notify_attachment(attachment, True) |
| 21 | + self._notify_attachment(attachment, True) |
| 22 | |
| 23 | def attachment_deleted(self, attachment): |
| 24 | - if self.ticket_notify_attachment: |
| 25 | - self._notify_attachment(attachment, False) |
| 26 | + self._notify_attachment(attachment, False) |
| 27 | |
| 28 | def attachment_reparented(self, attachment, old_parent_realm, |
| 29 | old_parent_id): |
| 30 | }}} |