aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-18 23:04:18 +0300
committerGravatar Vitaly Takmazov2018-01-18 23:04:18 +0300
commit1161a7c70b1418982c63c554ab3f4d77658442f9 (patch)
treeac8d226ada5211c06540b76068cce473aef832a3 /juick-core/src/main
parent1d25d3f1f2b2aa117b78d395226efd2cb9ea39ac (diff)
tg: fix reply quote format
Diffstat (limited to 'juick-core/src/main')
-rw-r--r--juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java b/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java
index 412e7b7c..6395cfa8 100644
--- a/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java
+++ b/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java
@@ -39,7 +39,8 @@ public class PlainTextFormatter {
StringBuilder sb = new StringBuilder();
boolean isReply = jmsg.getRid() > 0;
String title = isReply ? "Reply by @" : "@";
- String subtitle = isReply ? markdown ? MessageUtils.escapeMarkdown(jmsg.getReplyQuote()) : jmsg.getReplyQuote()
+ String subtitle = isReply ? markdown ? MessageUtils.escapeMarkdown(StringUtils.defaultString(jmsg.getReplyQuote()))
+ : jmsg.getReplyQuote()
: markdown ? MessageUtils.getMarkdownTags(jmsg) : jmsg.getTagsString();
sb.append(title).append(jmsg.getUser().getName()).append(":\n")
.append(subtitle).append("\n");