diff options
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 |