core/server/controllers/frontend.js
/**
 * similar to formatPageResponse, but for single post pages
 * @return {Object} containing page variables
 */
similar to formatPageResponse, but for single post pages
@return {Object} containing page variables
similar to formatPageResponse but for single post pages @return { Object } containing page variables
function formatResponse(post) {
    if (post.author) {
        delete post.author.email;
    }
    return {
        post: post
    };
}
function formatResponse ( post ) { if ( post . author ) { delete post . author . email ; } return { post : post } ; }
similar to formatPageResponse, but for single post pages
 @return {Object} containing page variables
similar to formatPageResponse but for single post pages @return { Object } containing page variables
// Delete email from author for frontend output // TODO: do this on API level if no context is available