|
@@ 408-413 (lines=6) @@
|
| 405 |
|
$remote = FederatedLink::fromJSON($params['link']); |
| 406 |
|
|
| 407 |
|
switch ($event->getSubject()) { |
| 408 |
|
case 'link_request_sent': |
| 409 |
|
return $this->parseCircleEvent( |
| 410 |
|
$event, $circle, $remote, |
| 411 |
|
$this->l10n->t('You sent a request to link {circle} with {remote}'), |
| 412 |
|
$this->l10n->t('{author} sent a request to link {circle} with {remote}') |
| 413 |
|
); |
| 414 |
|
|
| 415 |
|
case 'link_request_received'; |
| 416 |
|
return $this->parseLinkEvent( |
|
@@ 442-447 (lines=6) @@
|
| 439 |
|
$this->l10n->t('The request to link {circle} with {remote} has been accepted') |
| 440 |
|
); |
| 441 |
|
|
| 442 |
|
case 'link_request_removed': |
| 443 |
|
return $this->parseCircleEvent( |
| 444 |
|
$event, $circle, $remote, |
| 445 |
|
$this->l10n->t('You dismissed the request to link {remote} with {circle}'), |
| 446 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 447 |
|
); |
| 448 |
|
|
| 449 |
|
case 'link_request_canceling': |
| 450 |
|
return $this->parseCircleEvent( |
|
@@ 449-454 (lines=6) @@
|
| 446 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 447 |
|
); |
| 448 |
|
|
| 449 |
|
case 'link_request_canceling': |
| 450 |
|
return $this->parseCircleEvent( |
| 451 |
|
$event, $circle, $remote, |
| 452 |
|
$this->l10n->t('You canceled the request to link {circle} with {remote}'), |
| 453 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 454 |
|
); |
| 455 |
|
|
| 456 |
|
case 'link_request_accepting': |
| 457 |
|
return $this->parseCircleEvent( |
|
@@ 456-461 (lines=6) @@
|
| 453 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 454 |
|
); |
| 455 |
|
|
| 456 |
|
case 'link_request_accepting': |
| 457 |
|
return $this->parseCircleEvent( |
| 458 |
|
$event, $circle, $remote, |
| 459 |
|
$this->l10n->t('You accepted the request to link {remote} with {circle}'), |
| 460 |
|
$this->l10n->t('{author} accepted the request to link {remote} with {circle}') |
| 461 |
|
); |
| 462 |
|
|
| 463 |
|
case 'link_up': |
| 464 |
|
return $this->parseLinkEvent( |
|
@@ 477-482 (lines=6) @@
|
| 474 |
|
) |
| 475 |
|
); |
| 476 |
|
|
| 477 |
|
case 'link_remove': |
| 478 |
|
return $this->parseCircleEvent( |
| 479 |
|
$event, $circle, $remote, |
| 480 |
|
$this->l10n->t('You closed the link between {circle} and {remote}'), |
| 481 |
|
$this->l10n->t('{author} closed the link between {circle} and {remote}') |
| 482 |
|
); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
throw new InvalidArgumentException(); |