diff options
author | René Gieling <github@dartcafe.de> | 2021-12-29 02:58:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 02:58:24 +0300 |
commit | 70d682d911f8410474709d240b767280ae80e011 (patch) | |
tree | 01939f07ecbc22118cd101ca6c4ebbadd90e2db8 /lib/Event/PollDeletedEvent.php | |
parent | c4e4c7cde4965c62c7b272065d4f13bb1fc8a7b8 (diff) |
Adding activities (#2154)
Diffstat (limited to 'lib/Event/PollDeletedEvent.php')
-rw-r--r-- | lib/Event/PollDeletedEvent.php | 10 |
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 []; |