|
@@ 261-266 (lines=6) @@
|
| 258 |
|
$remote = FederatedLink::fromJSON($params['link']); |
| 259 |
|
|
| 260 |
|
switch ($event->getSubject()) { |
| 261 |
|
case 'link_request_sent': |
| 262 |
|
return $this->parseCircleEvent( |
| 263 |
|
$event, $circle, $remote, |
| 264 |
|
$this->l10n->t('You sent a request to link {circle} with {remote}'), |
| 265 |
|
$this->l10n->t('{author} sent a request to link {circle} with {remote}') |
| 266 |
|
); |
| 267 |
|
|
| 268 |
|
case 'link_request_received'; |
| 269 |
|
return $this->parseLinkEvent( |
|
@@ 295-300 (lines=6) @@
|
| 292 |
|
$this->l10n->t('The request to link {circle} with {remote} has been accepted') |
| 293 |
|
); |
| 294 |
|
|
| 295 |
|
case 'link_request_removed': |
| 296 |
|
return $this->parseCircleEvent( |
| 297 |
|
$event, $circle, $remote, |
| 298 |
|
$this->l10n->t('You dismissed the request to link {remote} with {circle}'), |
| 299 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 300 |
|
); |
| 301 |
|
|
| 302 |
|
case 'link_request_canceling': |
| 303 |
|
return $this->parseCircleEvent( |
|
@@ 302-307 (lines=6) @@
|
| 299 |
|
$this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
| 300 |
|
); |
| 301 |
|
|
| 302 |
|
case 'link_request_canceling': |
| 303 |
|
return $this->parseCircleEvent( |
| 304 |
|
$event, $circle, $remote, |
| 305 |
|
$this->l10n->t('You canceled the request to link {circle} with {remote}'), |
| 306 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 307 |
|
); |
| 308 |
|
|
| 309 |
|
case 'link_request_accepting': |
| 310 |
|
return $this->parseCircleEvent( |
|
@@ 309-314 (lines=6) @@
|
| 306 |
|
$this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
| 307 |
|
); |
| 308 |
|
|
| 309 |
|
case 'link_request_accepting': |
| 310 |
|
return $this->parseCircleEvent( |
| 311 |
|
$event, $circle, $remote, |
| 312 |
|
$this->l10n->t('You accepted the request to link {remote} with {circle}'), |
| 313 |
|
$this->l10n->t('{author} accepted the request to link {remote} with {circle}') |
| 314 |
|
); |
| 315 |
|
|
| 316 |
|
case 'link_up': |
| 317 |
|
return $this->parseLinkEvent( |
|
@@ 330-335 (lines=6) @@
|
| 327 |
|
) |
| 328 |
|
); |
| 329 |
|
|
| 330 |
|
case 'link_remove': |
| 331 |
|
return $this->parseCircleEvent( |
| 332 |
|
$event, $circle, $remote, |
| 333 |
|
$this->l10n->t('You closed the link between {circle} and {remote}'), |
| 334 |
|
$this->l10n->t('{author} closed the link between {circle} and {remote}') |
| 335 |
|
); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
throw new InvalidArgumentException(); |