|
|
@@ -4,7 +4,7 @@ import loggerFactory from '../../utils/logger';
|
|
|
import ActivityDefine from '../util/activityDefine';
|
|
|
import Crowi from '../crowi';
|
|
|
|
|
|
-// import { createSnapshot } from '../../components/InAppNotification/renderTargetModel/page';
|
|
|
+import { createSnapshot } from '../../components/InAppNotification/renderTargetModel/page/snapshot';
|
|
|
|
|
|
const logger = loggerFactory('growi:service:CommentService');
|
|
|
|
|
|
@@ -91,13 +91,7 @@ class CommentService {
|
|
|
};
|
|
|
|
|
|
private createAndSendNotifications = async function(activity, page) {
|
|
|
- // const snapshot = createSnapshot(page);
|
|
|
-
|
|
|
- const snapshot = JSON.stringify({
|
|
|
- path: page.path,
|
|
|
- creator: page.creator,
|
|
|
- lastUpdateUser: page.lastUpdateUser,
|
|
|
- });
|
|
|
+ const snapshot = createSnapshot(page);
|
|
|
|
|
|
// Get user to be notified
|
|
|
let targetUsers: Types.ObjectId[] = [];
|