bug fix http://jira.yoho.cn:8888/browse/YH-2559 review by 盖剑秋
Showing
4 changed files
with
4 additions
and
0 deletions
@@ -364,6 +364,7 @@ function parseRecommendation(json) { | @@ -364,6 +364,7 @@ function parseRecommendation(json) { | ||
364 | let timeagoStr = timeago(createTime); | 364 | let timeagoStr = timeago(createTime); |
365 | let isLike = item.hasPraise === 'Y' ? true : false; | 365 | let isLike = item.hasPraise === 'Y' ? true : false; |
366 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; | 366 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; |
367 | + title = title === '' ? desc : title; | ||
367 | let id = item.id ? item.id : 0; | 368 | let id = item.id ? item.id : 0; |
368 | 369 | ||
369 | let post = { | 370 | let post = { |
@@ -299,6 +299,7 @@ function parseNewPost(json) { | @@ -299,6 +299,7 @@ function parseNewPost(json) { | ||
299 | let timeagoStr = timeago(createTime); | 299 | let timeagoStr = timeago(createTime); |
300 | let isLike = item.hasPraise === 'Y' ? true : false; | 300 | let isLike = item.hasPraise === 'Y' ? true : false; |
301 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; | 301 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; |
302 | + title = title === '' ? desc : title; | ||
302 | let id = item.id ? item.id : 0; | 303 | let id = item.id ? item.id : 0; |
303 | 304 | ||
304 | let post = { | 305 | let post = { |
@@ -657,6 +657,7 @@ function parseJson(json) { | @@ -657,6 +657,7 @@ function parseJson(json) { | ||
657 | let timeagoStr = timeago(createTime); | 657 | let timeagoStr = timeago(createTime); |
658 | let isLike = item.hasPraise === 'Y' ? true : false; | 658 | let isLike = item.hasPraise === 'Y' ? true : false; |
659 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; | 659 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; |
660 | + title = title === '' ? desc : title; | ||
660 | let id = item.id ? item.id : 0; | 661 | let id = item.id ? item.id : 0; |
661 | 662 | ||
662 | let post = { | 663 | let post = { |
@@ -180,6 +180,7 @@ function parseUserThatNotMePosts(json) { | @@ -180,6 +180,7 @@ function parseUserThatNotMePosts(json) { | ||
180 | let timeagoStr = timeago(createTime); | 180 | let timeagoStr = timeago(createTime); |
181 | let isLike = item.hasPraise === 'Y' ? true : false; | 181 | let isLike = item.hasPraise === 'Y' ? true : false; |
182 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; | 182 | let title = item.postsTitle ? decodeURI(item.postsTitle) : ''; |
183 | + title = title === '' ? desc : title; | ||
183 | let id = item.id ? item.id : 0; | 184 | let id = item.id ? item.id : 0; |
184 | 185 | ||
185 | let post = { | 186 | let post = { |
-
Please register or login to post a comment