diff options
author | Vitaly Takmazov | 2022-03-03 15:15:39 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-03-03 15:15:39 +0300 |
commit | c5d03ea70ce732e0eabc7ea90b13b8ab95601c07 (patch) | |
tree | 394417ff54f2067d0e9882e80275d3fbc597a959 /src/main/java/com/juick/TwitterManager.java | |
parent | 5f06a38b6c2a6641900f79c051c1885a935ff9c3 (diff) |
Fix *readonly tag
Diffstat (limited to 'src/main/java/com/juick/TwitterManager.java')
-rw-r--r-- | src/main/java/com/juick/TwitterManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/TwitterManager.java b/src/main/java/com/juick/TwitterManager.java index 34864708..8af672a3 100644 --- a/src/main/java/com/juick/TwitterManager.java +++ b/src/main/java/com/juick/TwitterManager.java @@ -21,6 +21,8 @@ import com.juick.www.api.SystemActivity; import com.juick.service.UserService; import com.juick.service.component.*; import com.juick.util.MessageUtils; +import com.juick.util.TagUtils; + import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -76,7 +78,7 @@ public class TwitterManager implements NotificationListener { return; } if (StringUtils.isNotEmpty(userService.getTwitterName(msg.getUser().getUid()))) { - if (msg.getTags().stream().noneMatch(t -> t.getName().equals("notwitter"))) { + if (TagUtils.hasNoTag(msg.getTags(), "notwitter")) { twitterPost(msg); } } |