diff options
author | Vitaly Takmazov | 2018-03-21 12:20:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-21 13:52:55 +0300 |
commit | 403fab0c39e99ffd0b386eb612f3574938ae2125 (patch) | |
tree | 47b99c53134468da50c6f766ebb16043fa984cfa /juick-common/src/main/java/com/juick/util/MessageUtils.java | |
parent | f066f48e4cabd0d7649af2e8c1f4b6a7dea56673 (diff) |
add some events
Diffstat (limited to 'juick-common/src/main/java/com/juick/util/MessageUtils.java')
-rw-r--r-- | juick-common/src/main/java/com/juick/util/MessageUtils.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-common/src/main/java/com/juick/util/MessageUtils.java b/juick-common/src/main/java/com/juick/util/MessageUtils.java index 87a10351..10314bb0 100644 --- a/juick-common/src/main/java/com/juick/util/MessageUtils.java +++ b/juick-common/src/main/java/com/juick/util/MessageUtils.java @@ -19,6 +19,7 @@ package com.juick.util; import com.juick.Message; import com.juick.Tag; +import com.juick.User; import org.apache.commons.codec.CharEncoding; import org.apache.commons.lang3.StringUtils; @@ -188,8 +189,8 @@ public class MessageUtils { .collect(Collectors.joining(", ")); } - public static String getMarkdownUser(final Message jmsg) { - return String.format("[%s](https://juick.com/%s/)", jmsg.getUser().getName(), jmsg.getUser().getName()); + public static String getMarkdownUser(final User user) { + return String.format("[%s](https://juick.com/%s/)", user.getName(), user.getName()); } // TODO: check if it is really needed |