Skip to content

Commit

Permalink
Merge pull request #6570 from nextcloud/fix-comments-activity-error-12
Browse files Browse the repository at this point in the history
[stable12] Use the wrapper to get the parameters which was added in #6369
  • Loading branch information
LukasReschke committed Sep 19, 2017
2 parents db56ea3 + 4ca0223 commit 5e47b07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/comments/lib/Activity/Provider.php
Expand Up @@ -113,7 +113,7 @@ public function parse($language, IEvent $event, IEvent $previousEvent = null) {
* @throws \InvalidArgumentException
*/
protected function parseShortVersion(IEvent $event) {
$subjectParameters = $event->getSubjectParameters();
$subjectParameters = $this->getSubjectParameters($event);

if ($event->getSubject() === 'add_comment_subject') {
if ($subjectParameters['actor'] === $this->activityManager->getCurrentUserId()) {
Expand All @@ -139,7 +139,7 @@ protected function parseShortVersion(IEvent $event) {
* @throws \InvalidArgumentException
*/
protected function parseLongVersion(IEvent $event) {
$subjectParameters = $event->getSubjectParameters();
$subjectParameters = $this->getSubjectParameters($event);

if ($event->getSubject() === 'add_comment_subject') {
if ($subjectParameters['actor'] === $this->activityManager->getCurrentUserId()) {
Expand Down

0 comments on commit 5e47b07

Please sign in to comment.