]> git.mxchange.org Git - friendica.git/commitdiff
Add sample route for /itemsource
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 4 Apr 2019 03:35:54 +0000 (23:35 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 4 Apr 2019 03:36:37 +0000 (23:36 -0400)
- Fix missing item guid not displaying in Module\Itemsource

src/App.php
src/Module/Itemsource.php

index f698d06c8280dca36a6dc3e7fb85f57a74d330c3..d5698bdb769cfd9571546e3cec2b844deb394c2e 100644 (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);
        }
 }
index 12ce04f95c315f18634016fdcb3d8bf2a7e14e4e..f92baa987c6d5de819402abf3a3c53c0d6f457a6 100644 (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'];