Authored by 于良

bug fix : http://jira.yoho.cn:8888/browse/YH-2646 review by 阿瑟

... ... @@ -376,7 +376,10 @@ function parseRecommendation(json) {
let timeagoStr = timeago(createTime);
let isLike = item.hasPraise === 'Y' ? true : false;
let title = item.postsTitle ? decodeURI(item.postsTitle) : '';
title = title === '' ? desc : title;
if (title === '') {
title = desc;
desc = '';
}
let id = item.id ? item.id : 0;
let post = {
... ...
... ... @@ -309,7 +309,10 @@ function parseNewPost(json) {
let timeagoStr = timeago(createTime);
let isLike = item.hasPraise === 'Y' ? true : false;
let title = item.postsTitle ? decodeURI(item.postsTitle) : '';
title = title === '' ? desc : title;
if (title === '') {
title = desc;
desc = '';
}
let id = item.id ? item.id : 0;
let post = {
... ...
... ... @@ -644,7 +644,10 @@ function parseJson(json) {
let timeagoStr = timeago(createTime);
let isLike = item.hasPraise === 'Y' ? true : false;
let title = item.postsTitle ? decodeURI(item.postsTitle) : '';
title = title === '' ? desc : title;
if (title === '') {
title = desc;
desc = '';
}
let id = item.id ? item.id : 0;
let post = {
... ...