diff options
author | Vitaly Takmazov | 2020-03-07 13:20:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-03-07 13:20:45 +0300 |
commit | c9d67837cbcaae84a03b7bd14e508ca62880f87f (patch) | |
tree | 0f66e38f5b6aa48c66fae7d10c0b8b5ad6f7e7e2 /src/main/java/com/juick/server/TwitterManager.java | |
parent | ad50d1090b303d3a71c354dd2922a982fda6a289 (diff) |
Reorganize project layout
Diffstat (limited to 'src/main/java/com/juick/server/TwitterManager.java')
-rw-r--r-- | src/main/java/com/juick/server/TwitterManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/juick/server/TwitterManager.java b/src/main/java/com/juick/server/TwitterManager.java index 4022ef67..1b66358d 100644 --- a/src/main/java/com/juick/server/TwitterManager.java +++ b/src/main/java/com/juick/server/TwitterManager.java @@ -16,8 +16,8 @@ */ package com.juick.server; -import com.juick.Message; -import com.juick.User; +import com.juick.model.Message; +import com.juick.model.User; import com.juick.server.api.SystemActivity; import com.juick.service.UserService; import com.juick.service.component.*; @@ -63,7 +63,7 @@ public class TwitterManager implements NotificationListener { serviceUser = userService.getUserByName(serviceUsername); } - void twitterPost(final com.juick.Message jmsg) { + void twitterPost(final Message jmsg) { crosspostService.getTwitterToken(jmsg.getUser().getUid()).ifPresent(t -> { String status = MessageUtils.getMessageHashTags(jmsg) + StringUtils.defaultString(jmsg.getText()); if (status.length() > 253) { @@ -110,7 +110,7 @@ public class TwitterManager implements NotificationListener { } - private void processTop(com.juick.Message message) { + private void processTop(Message message) { Message jmsg = SerializationUtils.clone(message); jmsg.setUser(serviceUser); twitterPost(jmsg); |