Add routes for current BaseModules

This commit is contained in:
Philipp Holzer 2019-05-01 21:29:04 +02:00
parent b6b9e57488
commit 07ba1b200c
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
16 changed files with 806 additions and 722 deletions

View file

@ -12,7 +12,6 @@ use Friendica\Model\Photo;
use Friendica\Object\Image;
use Friendica\Util\HTTPSignature;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Core\Logger;
/**
* @brief Module Proxy
@ -159,6 +158,7 @@ class Proxy extends BaseModule
$sizetype = '';
// Look for filename in the arguments
// @TODO: Replace with parameter from router
if (($a->argc > 1) && !isset($_REQUEST['url'])) {
if (isset($a->argv[3])) {
$url = $a->argv[3];
@ -169,6 +169,7 @@ class Proxy extends BaseModule
}
/// @TODO: Why? And what about $url in this case?
/// @TODO: Replace with parameter from router
if (isset($a->argv[3]) && ($a->argv[3] == 'thumb')) {
$size = 200;
}