diff options
author | René Gieling <github@dartcafe.de> | 2022-04-13 11:20:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 11:20:19 +0300 |
commit | c792f18b212f175c5d320eb7df56f04106dc1f82 (patch) | |
tree | 3876b7fdb224b5428566e68ee3218db416050c7d /lib | |
parent | 757570706dc2b410814337ef790faccf6b0c3c86 (diff) | |
parent | 36dc4e6c004de3842e83558576500008bc117b43 (diff) |
Merge pull request #2374 from nextcloud/fix/activity
fix small issues in relation to activities
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/ActivityService.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Service/ActivityService.php b/lib/Service/ActivityService.php index 55530292..bf6875c4 100644 --- a/lib/Service/ActivityService.php +++ b/lib/Service/ActivityService.php @@ -86,7 +86,11 @@ class ActivityService { public function getActivityMessage(ActivityEvent $event, string $language, bool $filtered = false) : string { $this->l10n = $this->transFactory->get($event->getApp(), $language); - $this->userIsActor = $event->getAuthor() === $this->userSession->getUser()->getUID(); + try { + $this->userIsActor = $event->getAuthor() === $this->userSession->getUser()->getUID(); + } catch (\Exception $e) { + $this->userIsActor = false; + } $this->eventType = $event->getType(); $parameters = $event->getSubjectParameters(); $this->shareType = $parameters['shareType']['name'] ?? ''; |