Fixed "featured by" showing post uploader

This commit is contained in:
Marcin Kurczewski
2014-10-25 18:16:47 +02:00
parent f7ff4e0a71
commit f72b0216a5
6 changed files with 122 additions and 53 deletions

View File

@ -32,7 +32,8 @@ App.Presenters.HomePresenter = function(
templates.home = homeTemplate;
globals = globalsResponse.json;
post = featuredPostResponse.json.id ? featuredPostResponse.json : null;
post = featuredPostResponse.json.post;
user = featuredPostResponse.json.user;
render();
loaded();
@ -49,6 +50,7 @@ App.Presenters.HomePresenter = function(
function render() {
$el.html(templates.home({
post: post,
user: user,
globals: globals,
title: topNavigationPresenter.getBaseTitle(),
canViewUsers: auth.hasPrivilege(auth.privileges.viewUsers),