aboutsummaryrefslogtreecommitdiff
path: root/juick-core
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-06 14:57:02 +0300
committerGravatar Vitaly Takmazov2018-02-06 14:57:02 +0300
commitde2f87cadd8725d3bf23e2a5b7ac4359d7a32a0d (patch)
treec498deb9057ce220574412ce96add5611f94e67d /juick-core
parent61aaa45972998e9b0bcd3bd1d60a4a1a2375c6ae (diff)
api: format usernames in tg
Diffstat (limited to 'juick-core')
-rw-r--r--juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java2
1 files changed, 1 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 529db18a..5625fad6 100644
--- a/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java
+++ b/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java
@@ -42,7 +42,7 @@ public class PlainTextFormatter {
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")
+ sb.append(title).append(markdown ? String.format("[%s](https://juick.com/%s/)", jmsg.getUser().getName(), jmsg.getUser().getName()) : jmsg.getUser().getName()).append(":\n")
.append(subtitle).append("\n");
if (markdown) {
sb.append(MessageUtils.escapeMarkdown(StringUtils.defaultString(jmsg.getText())));