diff options
-rw-r--r-- | juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java | 2 |
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 06ae8a0a..40eb6939 100644 --- a/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java +++ b/juick-core/src/main/java/com/juick/formatters/PlainTextFormatter.java @@ -38,7 +38,7 @@ public class PlainTextFormatter { String subtitle = isReply ? jmsg.getReplyQuote() : jmsg.getTagsString(); sb.append(title).append(jmsg.getUser().getName()).append(":\n") .append(subtitle).append("\n").append(jmsg.getText()).append("\n"); - if (jmsg.getPhoto() != null) { + if (StringUtils.isNotEmpty(jmsg.getAttachmentType())) { sb.append(jmsg.getAttachment().getMedium().getUrl()); } return sb.toString(); |