|
|
|
@ -452,8 +452,13 @@ public class MyController extends BaseController {
|
|
|
|
|
|
|
|
|
|
private PublicationLike getPublicationLike(PublicationLike publicationLike) {
|
|
|
|
|
UserInfo userInfo = userInfoService.findById(publicationLike.getUserId());
|
|
|
|
|
publicationLike.setNickName(userInfo.getNickName());
|
|
|
|
|
publicationLike.setAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar());
|
|
|
|
|
publicationLike.setNickName("已注销");
|
|
|
|
|
publicationLike.setAvatar(Constants.RESOURCE_PREFIX+Constants.DEFAULT_USER_THUMBNAIL);
|
|
|
|
|
if(null != userInfo) {
|
|
|
|
|
publicationLike.setNickName(userInfo.getNickName());
|
|
|
|
|
publicationLike.setAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return publicationLike;
|
|
|
|
|
}
|
|
|
|
|
// 查询我收到的评论
|
|
|
|
@ -475,8 +480,13 @@ public class MyController extends BaseController {
|
|
|
|
|
private CommentHis getCommentHis(CommentHis commentHis) {
|
|
|
|
|
|
|
|
|
|
UserInfo userInfo = userInfoService.findById(commentHis.getCommenterId());
|
|
|
|
|
commentHis.setNickName(userInfo.getNickName());
|
|
|
|
|
commentHis.setCommenterAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar());
|
|
|
|
|
commentHis.setNickName("已注销");
|
|
|
|
|
commentHis.setCommenterAvatar(Constants.RESOURCE_PREFIX+Constants.DEFAULT_USER_THUMBNAIL);
|
|
|
|
|
if(null != userInfo) {
|
|
|
|
|
commentHis.setNickName(userInfo.getNickName());
|
|
|
|
|
commentHis.setCommenterAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return commentHis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|