|
@@ 400-414 (lines=15) @@
|
| 397 |
|
* |
| 398 |
|
* @return IEvent |
| 399 |
|
*/ |
| 400 |
|
private function parseCircleEvent( |
| 401 |
|
IEvent &$event, Circle $circle, $remote, $ownEvent, $othersEvent |
| 402 |
|
) { |
| 403 |
|
$data = [ |
| 404 |
|
'author' => $this->generateViewerParameter($circle), |
| 405 |
|
'circle' => $this->generateCircleParameter($circle), |
| 406 |
|
'remote' => ($remote === null) ? '' : $this->generateRemoteCircleParameter($remote) |
| 407 |
|
]; |
| 408 |
|
|
| 409 |
|
if ($this->isViewerTheAuthor($circle, $this->activityManager->getCurrentUserId())) { |
| 410 |
|
return $event->setRichSubject($ownEvent, $data); |
| 411 |
|
} |
| 412 |
|
|
| 413 |
|
return $event->setRichSubject($othersEvent, $data); |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
|
| 417 |
|
/** |
|
@@ 476-491 (lines=16) @@
|
| 473 |
|
* |
| 474 |
|
* @return IEvent |
| 475 |
|
*/ |
| 476 |
|
private function parseCircleMemberEvent( |
| 477 |
|
IEvent &$event, Circle $circle, Member $member, $ownEvent, $othersEvent |
| 478 |
|
) { |
| 479 |
|
$data = [ |
| 480 |
|
'author' => $this->generateViewerParameter($circle), |
| 481 |
|
'circle' => $this->generateCircleParameter($circle), |
| 482 |
|
'member' => $this->generateMemberParameter($member), |
| 483 |
|
'group' => $this->generateMemberParameter($member), |
| 484 |
|
]; |
| 485 |
|
|
| 486 |
|
if ($this->isViewerTheAuthor($circle, $this->activityManager->getCurrentUserId())) { |
| 487 |
|
return $event->setRichSubject($ownEvent, $data); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
return $event->setRichSubject($othersEvent, $data); |
| 491 |
|
} |
| 492 |
|
|
| 493 |
|
|
| 494 |
|
/** |