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:
authorRené Gieling <github@dartcafe.de>2021-12-29 02:58:24 +0300
committerGitHub <noreply@github.com>2021-12-29 02:58:24 +0300
commit70d682d911f8410474709d240b767280ae80e011 (patch)
tree01939f07ecbc22118cd101ca6c4ebbadd90e2db8 /lib/Event/PollDeletedEvent.php
parentc4e4c7cde4965c62c7b272065d4f13bb1fc8a7b8 (diff)
Adding activities (#2154)
Diffstat (limited to 'lib/Event/PollDeletedEvent.php')
-rw-r--r--lib/Event/PollDeletedEvent.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Event/PollDeletedEvent.php b/lib/Event/PollDeletedEvent.php
index 1c8e8f70..b96389ba 100644
--- a/lib/Event/PollDeletedEvent.php
+++ b/lib/Event/PollDeletedEvent.php
@@ -25,11 +25,17 @@ namespace OCA\Polls\Event;
use OCA\Polls\Notification\Notifier;
+use OCA\Polls\Db\Poll;
+
class PollDeletedEvent extends PollEvent {
- public function getLogMsg(): string {
- return '';
+ public function __construct(
+ Poll $poll
+ ) {
+ parent::__construct($poll);
+ $this->activitySubject = self::DELETE;
}
+
public function getNotification(): array {
if ($this->getActor() === $this->getPollOwner()) {
return [];