Add RSS feed for users and change address of project feeds

This commit is contained in:
Frederic Guillot
2015-06-19 19:38:23 -04:00
parent ff85518fa8
commit 73c47d9461
11 changed files with 94 additions and 28 deletions

View File

@@ -394,27 +394,6 @@ class Project extends Base
)));
}
/**
* RSS feed for a project (public)
*
* @access public
*/
public function feed()
{
$token = $this->request->getStringParam('token');
$project = $this->project->getByToken($token);
// Token verification
if (empty($project)) {
$this->forbidden(true);
}
$this->response->xml($this->template->render('project/feed', array(
'events' => $this->projectActivity->getProject($project['id']),
'project' => $project,
)));
}
/**
* Display a form to create a new project
*