aboutsummaryrefslogtreecommitdiff
path: root/juick-crosspost
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-07 18:56:43 +0700
committerGravatar Vitaly Takmazov2016-12-07 22:37:17 +0300
commit69a5bdba32cdf0a48e51baa8c9fb28dca013f515 (patch)
tree678ca66ebd5e3c6e0e46f179542ff35fcf52c767 /juick-crosspost
parentbad2718b1b85d806221fce52c76fa1d388993396 (diff)
message improvenments, checking for tag's duplicates
Diffstat (limited to 'juick-crosspost')
-rw-r--r--juick-crosspost/src/main/java/com/juick/components/Crosspost.java5
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;
}