|
@@ 500-514 (lines=15) @@
|
| 497 |
|
* |
| 498 |
|
* @return IEvent |
| 499 |
|
*/ |
| 500 |
|
private function parseCircleEvent( |
| 501 |
|
IEvent &$event, Circle $circle, $remote, $ownEvent, $othersEvent |
| 502 |
|
) { |
| 503 |
|
$data = [ |
| 504 |
|
'author' => $this->generateViewerParameter($circle), |
| 505 |
|
'circle' => $this->generateCircleParameter($circle), |
| 506 |
|
'remote' => ($remote === null) ? '' : $this->generateRemoteCircleParameter($remote) |
| 507 |
|
]; |
| 508 |
|
|
| 509 |
|
if ($this->isViewerTheAuthor($circle, $this->activityManager->getCurrentUserId())) { |
| 510 |
|
return $event->setRichSubject($ownEvent, $data); |
| 511 |
|
} |
| 512 |
|
|
| 513 |
|
return $event->setRichSubject($othersEvent, $data); |
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
|
| 517 |
|
/** |
|
@@ 576-591 (lines=16) @@
|
| 573 |
|
* |
| 574 |
|
* @return IEvent |
| 575 |
|
*/ |
| 576 |
|
private function parseCircleMemberEvent( |
| 577 |
|
IEvent &$event, Circle $circle, Member $member, $ownEvent, $othersEvent |
| 578 |
|
) { |
| 579 |
|
$data = [ |
| 580 |
|
'author' => $this->generateViewerParameter($circle), |
| 581 |
|
'circle' => $this->generateCircleParameter($circle), |
| 582 |
|
'member' => $this->generateMemberParameter($member), |
| 583 |
|
'group' => $this->generateMemberParameter($member), |
| 584 |
|
]; |
| 585 |
|
|
| 586 |
|
if ($this->isViewerTheAuthor($circle, $this->activityManager->getCurrentUserId())) { |
| 587 |
|
return $event->setRichSubject($ownEvent, $data); |
| 588 |
|
} |
| 589 |
|
|
| 590 |
|
return $event->setRichSubject($othersEvent, $data); |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
|
| 594 |
|
/** |