[CONTROLLER][FeedController] Make post processing happen more automatically, reducing noise in individual controllers. Now it's enough to simply extends App\Core\Controller\FeedController, to implement a feed

This commit is contained in:
2021-12-08 10:20:37 +00:00
parent 7783922b2e
commit 3b8a3e953d
6 changed files with 27 additions and 17 deletions

View File

@@ -175,11 +175,11 @@ class Favourite extends FeedController
['id' => $id],
);
return $this->process_feed([
return [
'_template' => 'feeds/feed.html.twig',
'page_title' => 'Favourites feed.',
'notes' => $notes,
]);
];
}
public function favouritesByActorNickname(Request $request, string $nickname)
@@ -208,11 +208,11 @@ class Favourite extends FeedController
['id' => $id],
);
return $this->process_feed([
return [
'_template' => 'feeds/feed.html.twig',
'page_title' => 'Reverse favourites feed.',
'notes' => $notes,
]);
];
}
public function reverseFavouritesByActorNickname(Request $request, string $nickname)