aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-28 11:37:09 +0300
committerGravatar Vitaly Takmazov2017-10-28 11:37:09 +0300
commit31a4570cbd137ebe0ee3e1f08e1dcf8545eef83f (patch)
tree5579a887317d7053c808853693b14a31691fe005 /juick-core/src/main/java
parent38a727fa6f3ec6579d6dc69d74a067b650ddcf52 (diff)
core: correctly check for attachment
Diffstat (limited to 'juick-core/src/main/java')
-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 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();