|
@@ 308-313 (lines=6) @@
|
| 305 |
|
$remote = FederatedLink::fromJSON($params['link']); |
| 306 |
|
|
| 307 |
|
switch ($event->getSubject()) { |
| 308 |
|
case 'link_request_sent': |
| 309 |
|
return $this->parseCircleEvent( |
| 310 |
|
$event, $circle, $remote, |
| 311 |
|
$this->l10n->t('You sent a request to link {circle} with {remote}'), |
| 312 |
|
$this->l10n->t('{author} sent a request to link {circle} with {remote}') |
| 313 |
|
); |
| 314 |
|
|
| 315 |
|
case 'link_request_received'; |
| 316 |
|
return $this->parseLinkEvent( |
|
@@ 342-347 (lines=6) @@
|
| 339 |
|
$this->l10n->t('The request to link {circle} with {remote} has been accepted') |
| 340 |
|
); |
| 341 |
|
|
| 342 |
|
case 'link_request_removed': |
| 343 |
|
return $this->parseCircleEvent( |
| 344 |
|
$event, $circle, $remote, |
| 345 |
|
$this->l10n->t('You dismissed the request to link {remote} with {circle}'), |
| 346 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 347 |
|
); |
| 348 |
|
|
| 349 |
|
case 'link_request_canceling': |
| 350 |
|
return $this->parseCircleEvent( |
|
@@ 349-354 (lines=6) @@
|
| 346 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 347 |
|
); |
| 348 |
|
|
| 349 |
|
case 'link_request_canceling': |
| 350 |
|
return $this->parseCircleEvent( |
| 351 |
|
$event, $circle, $remote, |
| 352 |
|
$this->l10n->t('You canceled the request to link {circle} with {remote}'), |
| 353 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 354 |
|
); |
| 355 |
|
|
| 356 |
|
case 'link_request_accepting': |
| 357 |
|
return $this->parseCircleEvent( |
|
@@ 356-361 (lines=6) @@
|
| 353 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 354 |
|
); |
| 355 |
|
|
| 356 |
|
case 'link_request_accepting': |
| 357 |
|
return $this->parseCircleEvent( |
| 358 |
|
$event, $circle, $remote, |
| 359 |
|
$this->l10n->t('You accepted the request to link {remote} with {circle}'), |
| 360 |
|
$this->l10n->t('{author} accepted the request to link {remote} with {circle}') |
| 361 |
|
); |
| 362 |
|
|
| 363 |
|
case 'link_up': |
| 364 |
|
return $this->parseLinkEvent( |
|
@@ 377-382 (lines=6) @@
|
| 374 |
|
) |
| 375 |
|
); |
| 376 |
|
|
| 377 |
|
case 'link_remove': |
| 378 |
|
return $this->parseCircleEvent( |
| 379 |
|
$event, $circle, $remote, |
| 380 |
|
$this->l10n->t('You closed the link between {circle} and {remote}'), |
| 381 |
|
$this->l10n->t('{author} closed the link between {circle} and {remote}') |
| 382 |
|
); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
throw new InvalidArgumentException(); |