diff options
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/TopManager.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/TopManager.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/juick-server/src/main/java/com/juick/server/TopManager.java b/juick-server/src/main/java/com/juick/server/TopManager.java index 66e1d6d2..0f2373b4 100644 --- a/juick-server/src/main/java/com/juick/server/TopManager.java +++ b/juick-server/src/main/java/com/juick/server/TopManager.java @@ -22,8 +22,6 @@ import com.juick.User; import com.juick.service.MessagesService; import com.juick.service.UserService; import com.juick.util.MessageUtils; -import com.vk.api.sdk.exceptions.ApiException; -import com.vk.api.sdk.exceptions.ClientException; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -44,8 +42,6 @@ public class TopManager { @Inject private FacebookPageManager facebookPageManager; @Inject - private VKWallManager vkWallManager; - @Inject private CrosspostManager crosspostManager; @Inject private UserService userService; @@ -70,13 +66,10 @@ public class TopManager { String link = "https://juick.com/" + jmsg.getMid(); try { facebookPageManager.post(status, link); - vkWallManager.post(status, link); } catch (HttpClientErrorException ex) { HttpStatus statusCode = ex.getStatusCode(); String responseString = ex.getResponseBodyAsString(); logger.warn("facebook error {}: {}", statusCode.value(), responseString); - } catch (ClientException | ApiException e) { - logger.warn("vk error: {}", e); } jmsg.setUser(serviceUser); crosspostManager.twitterPost(jmsg); |