|
@@ -245,7 +245,7 @@ public class articleTweetAction extends BaseController implements ModelDriven<Ar
|
|
|
result.setUserPhoto(data.getUserPhoto());
|
|
result.setUserPhoto(data.getUserPhoto());
|
|
|
//region 关注
|
|
//region 关注
|
|
|
if (articleTweetDto.getUserId().equals(data.getUserId())) {
|
|
if (articleTweetDto.getUserId().equals(data.getUserId())) {
|
|
|
- result.setIsFollow(3);//自己的推文
|
|
|
|
|
|
|
+ result.setIsFollow(2);//自己的推文
|
|
|
} else {
|
|
} else {
|
|
|
//是否关注
|
|
//是否关注
|
|
|
UserCollect uc = articleTweetService.queryUserCollect(data.getUserId(), articleTweetDto.getUserId());
|
|
UserCollect uc = articleTweetService.queryUserCollect(data.getUserId(), articleTweetDto.getUserId());
|
|
@@ -603,7 +603,7 @@ public class articleTweetAction extends BaseController implements ModelDriven<Ar
|
|
|
|
|
|
|
|
//region 关注
|
|
//region 关注
|
|
|
if (articleTweetDto.getUserId().equals(result.getId())) {
|
|
if (articleTweetDto.getUserId().equals(result.getId())) {
|
|
|
- result.setIsFollow(3);//自己的推文
|
|
|
|
|
|
|
+ result.setIsFollow(2);//自己的推文
|
|
|
} else {
|
|
} else {
|
|
|
//是否关注
|
|
//是否关注
|
|
|
UserCollect uc = articleTweetService.queryUserCollect(result.getId(), articleTweetDto.getUserId());
|
|
UserCollect uc = articleTweetService.queryUserCollect(result.getId(), articleTweetDto.getUserId());
|