diff --git a/client/js/models/info.js b/client/js/models/info.js index 9533e23e..ad44f580 100644 --- a/client/js/models/info.js +++ b/client/js/models/info.js @@ -1,11 +1,16 @@ 'use strict'; const api = require('../api.js'); +const Post = require('./post.js'); class Info { static get() { return api.get('/info') .then(response => { + if (response.featuredPost) { + response.featuredPost = + Post.fromResponse(response.featuredPost); + } return Promise.resolve(response); }, response => { return Promise.reject(response.errorMessage);