CSP manually refreshing feeds

https://github.com/FreshRSS/FreshRSS/issues/1075
This commit is contained in:
Alexandre Alapetite
2016-02-27 17:51:13 +01:00
parent 38c2d671e3
commit c9d3d78340
3 changed files with 52 additions and 61 deletions

View File

@@ -6,7 +6,7 @@ class FreshRSS_javascript_Controller extends Minz_ActionController {
}
public function actualizeAction() {
header('Content-Type: text/javascript; charset=UTF-8');
header('Content-Type: application/json; charset=UTF-8');
$feedDAO = FreshRSS_Factory::createFeedDao();
$this->view->feeds = $feedDAO->listFeedsOrderUpdate(FreshRSS_Context::$user_conf->ttl_default);
}