[ActivityPub] Routes
ActivityPubPlugin: - Update routes to properly use the updated URLMapper
This commit is contained in:
parent
067cc81ebb
commit
883621ba34
|
@ -141,21 +141,25 @@ class ActivityPubPlugin extends Plugin
|
||||||
$m->connect('user/:id',
|
$m->connect('user/:id',
|
||||||
['action' => 'apActorProfile'],
|
['action' => 'apActorProfile'],
|
||||||
['id' => '[0-9]+'],
|
['id' => '[0-9]+'],
|
||||||
|
true,
|
||||||
$acceptHeaders);
|
$acceptHeaders);
|
||||||
|
|
||||||
$m->connect(':nickname',
|
$m->connect(':nickname',
|
||||||
['action' => 'apActorProfile'],
|
['action' => 'apActorProfile'],
|
||||||
['nickname' => Nickname::DISPLAY_FMT],
|
['nickname' => Nickname::DISPLAY_FMT],
|
||||||
|
true,
|
||||||
$acceptHeaders);
|
$acceptHeaders);
|
||||||
|
|
||||||
$m->connect(':nickname/',
|
$m->connect(':nickname/',
|
||||||
['action' => 'apActorProfile'],
|
['action' => 'apActorProfile'],
|
||||||
['nickname' => Nickname::DISPLAY_FMT],
|
['nickname' => Nickname::DISPLAY_FMT],
|
||||||
|
true,
|
||||||
$acceptHeaders);
|
$acceptHeaders);
|
||||||
|
|
||||||
$m->connect('notice/:id',
|
$m->connect('notice/:id',
|
||||||
['action' => 'apNotice'],
|
['action' => 'apNotice'],
|
||||||
['id' => '[0-9]+'],
|
['id' => '[0-9]+'],
|
||||||
|
true,
|
||||||
$acceptHeaders);
|
$acceptHeaders);
|
||||||
|
|
||||||
$m->connect(
|
$m->connect(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user