aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main')
-rw-r--r--juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java3
1 files changed, 2 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 68799b83..a47a6113 100644
--- a/juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java
+++ b/juick-common/src/main/java/com/juick/formatters/PlainTextFormatter.java
@@ -37,8 +37,9 @@ public class PlainTextFormatter {
public static String formatPost(Message jmsg, boolean markdown) {
StringBuilder sb = new StringBuilder();
+ boolean isPM = jmsg.getMid() == 0;
boolean isReply = jmsg.getRid() > 0;
- String title = isReply ? "Reply by @" : "@";
+ String title = isReply ? "Reply by @" : isPM ? "Private message from @" : "@";
String subtitle = isReply ? markdown ? MessageUtils.escapeMarkdown(StringUtils.defaultString(jmsg.getReplyQuote()))
: jmsg.getReplyQuote()
: markdown ? MessageUtils.getMarkdownTags(jmsg) : MessageUtils.getTagsString(jmsg);