|
|
@@ -160,7 +160,7 @@ module.exports = function(crowi) {
|
|
|
const message = {
|
|
|
channel: `#${channel}`,
|
|
|
username: Config.appTitle(config),
|
|
|
- text: getSlackMessageTextForComment(path, comment.page.id, user),
|
|
|
+ text: getSlackMessageTextForComment(path, String(comment.page), user),
|
|
|
attachments: [attachment],
|
|
|
};
|
|
|
|
|
|
@@ -184,6 +184,7 @@ module.exports = function(crowi) {
|
|
|
|
|
|
const getSlackMessageTextForComment = function(path, pageId, user) {
|
|
|
const url = crowi.configManager.getSiteUrl();
|
|
|
+ console.log('pageId: ', pageId);
|
|
|
const pageUrl = `<${urljoin(url, pageId)}|${path}>`;
|
|
|
const text = `:speech_balloon: ${user.username} commented on ${pageUrl}`;
|
|
|
|