diff options
author | René Gieling <github@dartcafe.de> | 2022-02-09 23:39:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 23:39:40 +0300 |
commit | 8301c483397cf509c1ac326d58c7b709cba88a09 (patch) | |
tree | 439411aae4868b3958f63cdbee4ee3e3f20a2c1c | |
parent | 6ffea9fca2ef4e98ee5276d8eb30b8eedb8bcfff (diff) | |
parent | aa6958dd4d708c3e9a29ab106895198e44e640e4 (diff) |
Merge pull request #2239 from nextcloud/fix/3.5
exclude selected events from email notificaton
-rw-r--r-- | lib/Event/CommentDeleteEvent.php | 1 | ||||
-rw-r--r-- | lib/Event/PollOptionReorderedEvent.php | 1 | ||||
-rw-r--r-- | lib/Event/ShareChangedRegistrationConstraintEvent.php (renamed from lib/Event/ShareChangeRegistrationConstraintEvent.php) | 0 | ||||
-rw-r--r-- | lib/Event/ShareEvent.php | 1 | ||||
-rw-r--r-- | lib/Listener/BaseListener.php | 2 |
5 files changed, 4 insertions, 1 deletions
diff --git a/lib/Event/CommentDeleteEvent.php b/lib/Event/CommentDeleteEvent.php index f17a8c5f..d07da047 100644 --- a/lib/Event/CommentDeleteEvent.php +++ b/lib/Event/CommentDeleteEvent.php @@ -28,6 +28,7 @@ use OCA\Polls\Db\Comment; class CommentDeleteEvent extends CommentEvent { public function __construct(Comment $comment) { parent::__construct($comment); + $this->log = false; $this->activitySubject = self::DELETE; } } diff --git a/lib/Event/PollOptionReorderedEvent.php b/lib/Event/PollOptionReorderedEvent.php index c43633be..9d2fa33c 100644 --- a/lib/Event/PollOptionReorderedEvent.php +++ b/lib/Event/PollOptionReorderedEvent.php @@ -30,6 +30,7 @@ class PollOptionReorderedEvent extends PollEvent { Poll $poll ) { parent::__construct($poll); + $this->log = false; $this->activitySubject = self::OPTION_REORDER; } } diff --git a/lib/Event/ShareChangeRegistrationConstraintEvent.php b/lib/Event/ShareChangedRegistrationConstraintEvent.php index 74ca7340..74ca7340 100644 --- a/lib/Event/ShareChangeRegistrationConstraintEvent.php +++ b/lib/Event/ShareChangedRegistrationConstraintEvent.php diff --git a/lib/Event/ShareEvent.php b/lib/Event/ShareEvent.php index 4ba30336..f6fa2974 100644 --- a/lib/Event/ShareEvent.php +++ b/lib/Event/ShareEvent.php @@ -40,6 +40,7 @@ abstract class ShareEvent extends BaseEvent { public function __construct(Share $share) { parent::__construct($share); $this->activityObject = 'poll'; + $this->log = false; $this->share = $share; $this->activitySubjectParams['shareType'] = $this->share->getRichObjectString(); $this->activitySubjectParams['sharee'] = $this->share->getUserObject()->getRichObjectString(); diff --git a/lib/Listener/BaseListener.php b/lib/Listener/BaseListener.php index 298cbc4f..2512dc5b 100644 --- a/lib/Listener/BaseListener.php +++ b/lib/Listener/BaseListener.php @@ -83,7 +83,7 @@ abstract class BaseListener implements IEventListener { $this->checkClass(); $this->addLog(); - // If addLog throws UniqueConstraintViolationException, avoid spamming in activities + // If addLog throws UniqueConstraintViolationException, avoid spamming activities if ($this->appSettings->getUseActivity()) { $this->addActivity(); } |