Add sample route for /itemsource
- Fix missing item guid not displaying in Module\Itemsource
This commit is contained in:
parent
61b6ab7e3e
commit
993f4e5fcc
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue