use Friendica\BaseModule;
use Friendica\Core\Logger;
+use Friendica\Core\System;
use Friendica\DI;
use Friendica\Model\Photo;
use Friendica\Object\Image;
*/
public static function rawContent(array $parameters = [])
{
- if (!local_user()) {
- throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Access denied.'));
- }
-
// Set application instance here
$a = DI::app();
throw new \Friendica\Network\HTTPException\BadRequestException();
}
+ if (!local_user()) {
+ Logger::info('Redirecting not logged in user to original address', ['url' => $request['url']]);
+ System::externalRedirect($request['url']);
+ }
+
// Webserver already tried direct cache...
// Try to use filecache;