style(cmd): clean-up pin/unpin response
This commit is contained in:
parent
531c22205a
commit
831179b337
2 changed files with 6 additions and 2 deletions
|
@ -9,7 +9,9 @@ exports.runQuery = function (matrixClient, room, userInput, registrar) {
|
|||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
'',
|
||||
`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) => {
|
||||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
|
|
|
@ -9,7 +9,9 @@ exports.runQuery = function (matrixClient, room, userInput, registrar) {
|
|||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
'',
|
||||
`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) => {
|
||||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
|
|
Loading…
Reference in a new issue