@@ -83,6 +83,10 @@ const InAppNotificationElm = (props: Props): JSX.Element | null => {
actionMsg = 'likes on';
actionIcon = 'icon-like';
break;
+ case 'PAGE_BOOKMARK':
+ actionMsg = 'bookmarked on';
+ actionIcon = 'icon-star';
+ break;
case 'PAGE_UPDATE':
actionMsg = 'updated on';
actionIcon = 'ti-agenda';
@@ -79,7 +79,12 @@ class PageService {
// bookmark
this.pageEvent.on('bookmark', async(page, user) => {
- console.log('ブックマークされたンゴ!');
+ try {
+ await this.createAndSendNotifications(page, user, ActivityDefine.ACTION_PAGE_BOOKMARK);
+ }
+ catch (err) {
+ logger.error(err);
});
}