mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #1790 from ErisDS/issue-1776
Ensure that RSS doesn't 404 when there is no user
This commit is contained in:
commit
5ef399faee
1 changed files with 6 additions and 5 deletions
|
@ -124,14 +124,15 @@ frontendControllers = {
|
|||
pageParam = req.params.page !== undefined ? parseInt(req.params.page, 10) : 1,
|
||||
feed;
|
||||
//needs refact for multi user to not use first user as default
|
||||
when.all([
|
||||
when.settle([
|
||||
api.users.read({id : 1}),
|
||||
api.settings.read('title'),
|
||||
api.settings.read('description')
|
||||
]).then(function (values) {
|
||||
var user = values[0],
|
||||
title = values[1].value,
|
||||
description = values[2].value;
|
||||
]).then(function (result) {
|
||||
var user = result[0].value,
|
||||
title = result[1].value.value,
|
||||
description = result[2].value.value;
|
||||
|
||||
feed = new RSS({
|
||||
title: title,
|
||||
description: description,
|
||||
|
|
Loading…
Add table
Reference in a new issue