[AVATAR] Update way avatar is sent, to use proper symfony responses, make config('site', 's_static_delivery') into a boolean

This commit is contained in:
Hugo Sales
2020-08-08 21:28:51 +00:00
committed by Hugo Sales
parent a498134b13
commit d21d4f5cb1
3 changed files with 28 additions and 35 deletions

View File

@@ -49,10 +49,7 @@ class Avatar extends Controller
}
$res = $result[0];
Media::sendFile(EAvatar::getFilePath($res['file_hash']), $res['mimetype'], $res['title']);
die();
// TODO FIX THIS
break;
return Media::sendFile(EAvatar::getFilePath($res['file_hash']), $res['mimetype'], $res['title']);
default:
throw new Exception('Not implemented');
}