@@ -80,7 +80,7 @@ const InAppNotificationElm = (props: Props): JSX.Element | null => {
switch (actionType) {
case 'PAGE_LIKE':
- actionMsg = 'likes on';
+ actionMsg = 'liked';
actionIcon = 'icon-like';
break;
case 'PAGE_UPDATE':
@@ -267,7 +267,7 @@ module.exports = (crowi) => {
if (isLiked) {
const pageEvent = crowi.event('page');
// in-app notification
- pageEvent.emit('likes', page, req.user);
+ pageEvent.emit('like', page, req.user);
}
});
@@ -68,7 +68,7 @@ class PageService {
// likes
- this.pageEvent.on('likes', async(page, user) => {
+ this.pageEvent.on('like', async(page, user) => {
try {
await this.createAndSendNotifications(page, user, ActivityDefine.ACTION_PAGE_LIKE);