Use the wrapper to get the parameters which was added in #6369

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-09-19 15:01:43 +02:00
parent 66698b2d42
commit 10c7ecb5e9
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 2 additions and 2 deletions

View File

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