Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-02-09 20:40:18 +0300
committerdartcafe <github@dartcafe.de>2022-02-09 20:40:18 +0300
commitaa6958dd4d708c3e9a29ab106895198e44e640e4 (patch)
tree6e3d7285e08c9819f258e44e2078cf607c300d3b
parent002921ad0bfc907abc31954fdb7be0fd14582b66 (diff)
exclude selected events from notificaton
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r--lib/Event/CommentDeleteEvent.php1
-rw-r--r--lib/Event/PollOptionReorderedEvent.php1
-rw-r--r--lib/Event/ShareChangedRegistrationConstraintEvent.php (renamed from lib/Event/ShareChangeRegistrationConstraintEvent.php)0
-rw-r--r--lib/Event/ShareEvent.php1
-rw-r--r--lib/Listener/BaseListener.php2
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();
}