diff options
author | Vitaly Takmazov | 2018-07-26 12:42:51 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-07-26 12:44:12 +0300 |
commit | 264bd16c937c48b2af77473944217496fae0aa3d (patch) | |
tree | e84304d609de95bf0359c369a7643a63ad3376c1 /juick-common/src/main/java/com/juick/formatters | |
parent | 91bd51c87c715954e21e96948db11aa980dcbeb2 (diff) |
Multiple trivial fixes
* https links in posts
* escape reply numbers for telegram
* catch when non safe url can not be stripped
Diffstat (limited to 'juick-common/src/main/java/com/juick/formatters')
-rw-r--r-- | juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java b/juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java index 91748684..378a523f 100644 --- a/juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java +++ b/juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java @@ -44,7 +44,7 @@ public class PlainTextFormatter { sb.append(title).append(markdown ? MessageUtils.getMarkdownUser(jmsg.getUser()) : jmsg.getUser().getName()).append(":\n") .append(subtitle).append("\n"); if (markdown) { - sb.append(MessageUtils.escapeMarkdown(StringUtils.defaultString(jmsg.getText()))); + sb.append(MessageUtils.formatMarkdownText(jmsg)); } else { sb.append(StringUtils.defaultString(jmsg.getText())); } |