From 993f4e5fccc7bbece249da4888b37a7f4e16f343 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 3 Apr 2019 23:35:54 -0400 Subject: [PATCH] Add sample route for /itemsource - Fix missing item guid not displaying in Module\Itemsource --- src/App.php | 2 ++ src/Module/Itemsource.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index f698d06c8..d5698bdb7 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 12ce04f95..f92baa987 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'];