style(cmd): clean-up pin/unpin response

This commit is contained in:
vulet 2019-09-06 07:44:39 -04:00
parent 531c22205a
commit 831179b337
2 changed files with 6 additions and 2 deletions

View file

@ -9,7 +9,9 @@ exports.runQuery = function (matrixClient, room, userInput, registrar) {
matrixClient.sendHtmlNotice(room.roomId, matrixClient.sendHtmlNotice(room.roomId,
'', '',
`Pinned: `Pinned:
<blockquote>${registrar.config.fediverse}/notice/${userInput}`); <blockquote><i><a href="${registrar.config.fediverse}/notice/${response.data.id}">
${response.data.content}</a></i>
</blockquote>`);
}) })
.catch((e) => { .catch((e) => {
matrixClient.sendHtmlNotice(room.roomId, matrixClient.sendHtmlNotice(room.roomId,

View file

@ -9,7 +9,9 @@ exports.runQuery = function (matrixClient, room, userInput, registrar) {
matrixClient.sendHtmlNotice(room.roomId, matrixClient.sendHtmlNotice(room.roomId,
'', '',
`Unpinned: `Unpinned:
<blockquote>${registrar.config.fediverse}/notice/${userInput}`); <blockquote><i><a href="${registrar.config.fediverse}/notice/${response.data.id}">
${response.data.content}</a></i>
</blockquote>`);
}) })
.catch((e) => { .catch((e) => {
matrixClient.sendHtmlNotice(room.roomId, matrixClient.sendHtmlNotice(room.roomId,