diff options
author | Alexander Alexeev | 2016-12-07 18:56:43 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-07 22:37:17 +0300 |
commit | 69a5bdba32cdf0a48e51baa8c9fb28dca013f515 (patch) | |
tree | 678ca66ebd5e3c6e0e46f179542ff35fcf52c767 /juick-crosspost/src/main/java/com/juick/components/Crosspost.java | |
parent | bad2718b1b85d806221fce52c76fa1d388993396 (diff) |
message improvenments, checking for tag's duplicates
Diffstat (limited to 'juick-crosspost/src/main/java/com/juick/components/Crosspost.java')
-rw-r--r-- | juick-crosspost/src/main/java/com/juick/components/Crosspost.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java index c39898f2..c84b50f6 100644 --- a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java +++ b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java @@ -17,6 +17,7 @@ */ package com.juick.components; +import com.juick.Tag; import com.juick.service.CrosspostService; import org.apache.commons.codec.Charsets; import org.apache.commons.codec.binary.Base64; @@ -284,8 +285,8 @@ public class Crosspost implements AutoCloseable { public String getMessageHashTags(final com.juick.Message jmsg) { String hashtags = ""; - for (int i = 0; i < jmsg.getTags().size(); i++) { - hashtags += "#" + jmsg.getTags().get(i) + " "; + for (Tag tag : jmsg.getTags()) { + hashtags += "#" + tag + " "; } return hashtags; } |