Commit a750e6d6 authored by 刘基明's avatar 刘基明

转并评论 fix

parent a6240279
......@@ -101,9 +101,9 @@ public class CommentManager {
String themeId = themeService.commentSyncForward(req, userId);
// 消息通知
ThemeEntity formerTheme = themeService.queryByThemeId(req.getThemeId());
notificationService.insertForward(userId, formerTheme.getAuthorId(), formerTheme.getThemeId(), "", req.getComment(), themeEntity.getThemeId());
notificationService.putNotifyCache(formerTheme.getAuthorId(), userId, NotificationTypeEnum.FORWARD);
ThemeEntity commentTheme = themeService.queryByThemeId(req.getThemeId());
notificationService.insertForward(userId, commentTheme.getAuthorId(), commentTheme.getThemeId(), "", req.getComment(), themeId);
notificationService.putNotifyCache(commentTheme.getAuthorId(), userId, NotificationTypeEnum.FORWARD);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment