Add query path capabilities to /itemsource

This commit is contained in:
Hypolite Petovan 2019-02-08 23:12:05 -05:00
parent 199fac3397
commit ca65450537

View file

@ -17,10 +17,18 @@ class Itemsource extends \Friendica\BaseModule
return;
}
$a = self::getApp();
if (!empty($a->argv[1])) {
$guid = $a->argv[1];
}
$guid = defaults($_REQUEST['guid'], $guid);
$source = '';
$item_uri = '';
if (!empty($_REQUEST['guid'])) {
$item = Model\Item::selectFirst([], ['guid' => $_REQUEST['guid']]);
if (!empty($guid)) {
$item = Model\Item::selectFirst([], ['guid' => $guid]);
$conversation = Model\Conversation::getByItemUri($item['uri']);