diff options
Diffstat (limited to 'apps/comments')
-rw-r--r-- | apps/comments/lib/Activity/Listener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/lib/Activity/Listener.php b/apps/comments/lib/Activity/Listener.php index 76af565cf15..1dec28c8250 100644 --- a/apps/comments/lib/Activity/Listener.php +++ b/apps/comments/lib/Activity/Listener.php @@ -77,7 +77,7 @@ class Listener { */ public function commentEvent(CommentsEvent $event) { if ($event->getComment()->getObjectType() !== 'files' - || !in_array($event->getEvent(), [CommentsEvent::EVENT_ADD]) + || $event->getEvent() !== CommentsEvent::EVENT_ADD || !$this->appManager->isInstalled('activity')) { // Comment not for file, not adding a comment or no activity-app enabled (save the energy) return; |