Merge pull request #6570 from nextcloud/fix-comments-activity-error-12
[stable12] Use the wrapper to get the parameters which was added in #6369
This commit is contained in:
commit
5e47b07b21
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue