mirror of
https://github.com/friendica/friendica
synced 2024-11-13 01:42:59 +00:00
Add query path capabilities to /itemsource
This commit is contained in:
parent
199fac3397
commit
ca65450537
1 changed files with 10 additions and 2 deletions
|
@ -17,10 +17,18 @@ class Itemsource extends \Friendica\BaseModule
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$a = self::getApp();
|
||||||
|
|
||||||
|
if (!empty($a->argv[1])) {
|
||||||
|
$guid = $a->argv[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
$guid = defaults($_REQUEST['guid'], $guid);
|
||||||
|
|
||||||
$source = '';
|
$source = '';
|
||||||
$item_uri = '';
|
$item_uri = '';
|
||||||
if (!empty($_REQUEST['guid'])) {
|
if (!empty($guid)) {
|
||||||
$item = Model\Item::selectFirst([], ['guid' => $_REQUEST['guid']]);
|
$item = Model\Item::selectFirst([], ['guid' => $guid]);
|
||||||
|
|
||||||
$conversation = Model\Conversation::getByItemUri($item['uri']);
|
$conversation = Model\Conversation::getByItemUri($item['uri']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue