diff --git a/commands/notify.js b/commands/notify.js index dc969fa..f16cfea 100644 --- a/commands/notify.js +++ b/commands/notify.js @@ -15,35 +15,35 @@ exports.runQuery = function (matrixClient, room, registrar) { if (notifications.data[0].type === 'follow') { matrixClient.sendHtmlNotice(room.roomId, '', - `
+ ` ${notifications.data[0].account.acct} has followed you. -
${notifications.data[0].account.note}
`); +
${notifications.data[0].account.note}`); } else if (notifications.data[0].type === 'favourite') { matrixClient.sendHtmlNotice(room.roomId, '', - `
+ ` ${notifications.data[0].account.acct} has favorited your post: -
${notifications.data[0].status.content}
`); +
${notifications.data[0].status.content}
`); } else if (notifications.data[0].type === 'mention') { matrixClient.sendHtmlNotice(room.roomId, '', - `
+ ` ${notifications.data[0].account.acct} has mentioned you:
- ${notifications.data[0].status.content} -
(id: ${notifications.data[0].status.id})

`); +
${notifications.data[0].status.content} +
(id: ${notifications.data[0].status.id})
`); } else if (notifications.data[0].type === 'reblog') { matrixClient.sendHtmlNotice(room.roomId, '', - `
+ ` ${notifications.data[0].account.acct} has repeated your post:
- ${notifications.data[0].status.content}
`); +
${notifications.data[0].status.content}
`); } } });