Add sample route for /itemsource

- Fix missing item guid not displaying in Module\Itemsource
This commit is contained in:
Hypolite Petovan 2019-04-03 23:35:54 -04:00
parent 61b6ab7e3e
commit 993f4e5fcc
2 changed files with 2 additions and 1 deletions

View File

@ -1523,6 +1523,8 @@ class App
*/
private function collectRoutes(RouteCollector $routeCollector)
{
$routeCollector->addRoute(['GET', 'POST'], '/itemsource[/{guid}]', Module\Itemsource::class);
Hook::callAll('route_collection', $routeCollector);
}
}

View File

@ -37,7 +37,6 @@ class Itemsource extends \Friendica\BaseModule
$conversation = Model\Conversation::getByItemUri($item['uri']);
$guid = $item['guid'];
$item_id = $item['id'];
$item_uri = $item['uri'];
$source = $conversation['source'];