Skip to content

Commit

Permalink
Fix message format
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Aug 29, 2020
1 parent d98d439 commit 0fbdd8b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,11 @@ router.post('/message', async (req, res) => {
})
);

sendMessage(`
#${msg.token}:\n
**${msg.payload.name}**\n
${msg.payload.body}\n
<https://ipfs.fleek.co/ipfs/${authorIpfsRes}>\n
`);
let message = `#${msg.token}\n`;
message += `**${msg.payload.name}**\n`;
message += `${msg.payload.body}\n`;
message += `<https://ipfs.fleek.co/ipfs/${authorIpfsRes}>`;
sendMessage(message);
}

if (msg.type === 'vote') {
Expand Down

0 comments on commit 0fbdd8b

Please sign in to comment.