diff options
Diffstat (limited to 'juick-crosspost/src/main/java/com/juick')
-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; } |