|
|
@@ -706,7 +706,7 @@ module.exports = function(crowi, app) {
|
|
|
previousRevision = data.revision;
|
|
|
return Page.updatePage(data, body, req.user, { grant, grantUserGroupId })
|
|
|
.then((page) => {
|
|
|
- // NOTIFICATION: send page edit notification here
|
|
|
+ // global notification
|
|
|
notification.notifyPageEdit(page);
|
|
|
return page;
|
|
|
});
|
|
|
@@ -716,7 +716,7 @@ module.exports = function(crowi, app) {
|
|
|
updateOrCreate = 'create';
|
|
|
return Page.create(path, body, req.user, { grant, grantUserGroupId })
|
|
|
.then((page) => {
|
|
|
- // NOTIFICATION: send page create notification here
|
|
|
+ // global notification
|
|
|
notification.notifyPageCreate(page);
|
|
|
return page;
|
|
|
});
|
|
|
@@ -1010,7 +1010,7 @@ module.exports = function(crowi, app) {
|
|
|
return res.json(ApiResponse.error({}));
|
|
|
})
|
|
|
.then((page) => {
|
|
|
- // NOTIFICATION: send page like notification here
|
|
|
+ // global notification
|
|
|
return notification.notifyPageLike(page, req.user);
|
|
|
});
|
|
|
};
|
|
|
@@ -1120,7 +1120,7 @@ module.exports = function(crowi, app) {
|
|
|
return res.json(ApiResponse.error('Failed to delete page.'));
|
|
|
})
|
|
|
.then((page) => {
|
|
|
- // NOTIFICATION: send page delete notification here
|
|
|
+ // global notification
|
|
|
return notification.notifyPageDelete(page);
|
|
|
});
|
|
|
};
|
|
|
@@ -1217,7 +1217,7 @@ module.exports = function(crowi, app) {
|
|
|
return res.json(ApiResponse.error('Failed to update page.'));
|
|
|
})
|
|
|
.then(() => {
|
|
|
- // NOTIFICATION: send page move notification here
|
|
|
+ // global notification
|
|
|
notification.notifyPageMove(page, req.body.path, req.user);
|
|
|
});
|
|
|
});
|