[ActivityStreamsTwo] Further work on routes and use render event on note's content

This commit is contained in:
2021-09-20 17:04:24 +01:00
parent 7813723ca1
commit 9e4c43e8fd
7 changed files with 101 additions and 32 deletions

View File

@@ -47,13 +47,16 @@ class ActivityStreamsTwo extends Plugin
case 'note_view':
$response = NoteResponse::handle($vars['note']);
return Event::stop;
case 'actor_favourites':
case 'actor_favourites_id':
case 'actor_favourites_nickname':
$response = LikeResponse::handle($vars['actor']);
return Event::stop;
case 'actor_subscriptions':
case 'actor_subscriptions_id':
case 'actor_subscriptions_nickname':
$response = FollowingResponse::handle($vars['actor']);
return Event::stop;
case 'actor_subscribers':
case 'actor_subscribers_id':
case 'actor_subscribers_nickname':
$response = FollowersResponse::handle($vars['actor']);
return Event::stop;
default: