(image) when only a image is posted in WatchNotifier

captchafix
Florens Douwes 11 years ago
parent ee239f3a02
commit 23ff0e1e40
  1. 11
      Chan/src/org/floens/chan/core/watch/WatchNotifier.java

@ -128,10 +128,17 @@ public class WatchNotifier {
List<CharSequence> lines = new ArrayList<CharSequence>();
for (Post post : posts) {
CharSequence comment;
if (post.comment.length() == 0) {
comment = "(image)";
} else {
comment = post.comment;
}
if (pins.size() > 1) {
lines.add(post.title + ": " + post.comment);
lines.add(post.title + ": " + comment);
} else {
lines.add(post.comment);
lines.add(comment);
}
}

Loading…
Cancel
Save