소스 검색

fix wording

Shun Miyazawa 4 년 전
부모
커밋
1986ab3be8

+ 1 - 1
packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

@@ -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':

+ 1 - 1
packages/app/src/server/routes/apiv3/page.js

@@ -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);
     }
   });
 

+ 1 - 1
packages/app/src/server/service/page.js

@@ -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);
       }