From: Hypolite Petovan Date: Thu, 4 Apr 2019 03:35:54 +0000 (-0400) Subject: Add sample route for /itemsource X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=993f4e5fccc7bbece249da4888b37a7f4e16f343;p=friendica.git Add sample route for /itemsource - Fix missing item guid not displaying in Module\Itemsource --- diff --git a/src/App.php b/src/App.php index f698d06c82..d5698bdb76 100644 --- a/src/App.php +++ b/src/App.php @@ -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); } } diff --git a/src/Module/Itemsource.php b/src/Module/Itemsource.php index 12ce04f95c..f92baa987c 100644 --- a/src/Module/Itemsource.php +++ b/src/Module/Itemsource.php @@ -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'];