|
@@ 458-463 (lines=6) @@
|
| 455 |
|
$remote = FederatedLink::fromJSON($params['link']); |
| 456 |
|
|
| 457 |
|
switch ($event->getSubject()) { |
| 458 |
|
case 'link_request_sent': |
| 459 |
|
return $this->parseCircleEvent( |
| 460 |
|
$event, $circle, $remote, |
| 461 |
|
$this->l10n->t('You sent a request to link {circle} with {remote}'), |
| 462 |
|
$this->l10n->t('{author} sent a request to link {circle} with {remote}') |
| 463 |
|
); |
| 464 |
|
|
| 465 |
|
case 'link_request_received'; |
| 466 |
|
return $this->parseLinkEvent( |
|
@@ 492-497 (lines=6) @@
|
| 489 |
|
$this->l10n->t('The request to link {circle} with {remote} has been accepted') |
| 490 |
|
); |
| 491 |
|
|
| 492 |
|
case 'link_request_removed': |
| 493 |
|
return $this->parseCircleEvent( |
| 494 |
|
$event, $circle, $remote, |
| 495 |
|
$this->l10n->t('You dismissed the request to link {remote} with {circle}'), |
| 496 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 497 |
|
); |
| 498 |
|
|
| 499 |
|
case 'link_request_canceling': |
| 500 |
|
return $this->parseCircleEvent( |
|
@@ 499-504 (lines=6) @@
|
| 496 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 497 |
|
); |
| 498 |
|
|
| 499 |
|
case 'link_request_canceling': |
| 500 |
|
return $this->parseCircleEvent( |
| 501 |
|
$event, $circle, $remote, |
| 502 |
|
$this->l10n->t('You canceled the request to link {circle} with {remote}'), |
| 503 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 504 |
|
); |
| 505 |
|
|
| 506 |
|
case 'link_request_accepting': |
| 507 |
|
return $this->parseCircleEvent( |
|
@@ 506-511 (lines=6) @@
|
| 503 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 504 |
|
); |
| 505 |
|
|
| 506 |
|
case 'link_request_accepting': |
| 507 |
|
return $this->parseCircleEvent( |
| 508 |
|
$event, $circle, $remote, |
| 509 |
|
$this->l10n->t('You accepted the request to link {remote} with {circle}'), |
| 510 |
|
$this->l10n->t('{author} accepted the request to link {remote} with {circle}') |
| 511 |
|
); |
| 512 |
|
|
| 513 |
|
case 'link_up': |
| 514 |
|
return $this->parseLinkEvent( |
|
@@ 527-532 (lines=6) @@
|
| 524 |
|
) |
| 525 |
|
); |
| 526 |
|
|
| 527 |
|
case 'link_remove': |
| 528 |
|
return $this->parseCircleEvent( |
| 529 |
|
$event, $circle, $remote, |
| 530 |
|
$this->l10n->t('You closed the link between {circle} and {remote}'), |
| 531 |
|
$this->l10n->t('{author} closed the link between {circle} and {remote}') |
| 532 |
|
); |
| 533 |
|
} |
| 534 |
|
|
| 535 |
|
throw new InvalidArgumentException(); |