Merge pull request #6569 from nextcloud/fix-comments-activity-error

Use the wrapper to get the parameters which was added in #6369
This commit is contained in:
Lukas Reschke 2017-09-19 16:07:01 +02:00 committed by GitHub
commit 916a1b5662
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class Provider implements IProvider {
* @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()) {
@ -139,7 +139,7 @@ class Provider implements IProvider {
* @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()) {