aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/VKontakteLogin.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-28 15:25:11 +0300
committerGravatar Vitaly Takmazov2016-11-28 15:25:11 +0300
commit595775d273a6af92268426e9f66e39082e389aa9 (patch)
tree6adf966f58431148840b35dc48b5f1b08e6b3fb4 /juick-www/src/main/java/com/juick/www/VKontakteLogin.java
parentb4225fa075eef58924399f2c5f7a117ee171c2c6 (diff)
fix vk users.get deserialization
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/VKontakteLogin.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/VKontakteLogin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/VKontakteLogin.java b/juick-www/src/main/java/com/juick/www/VKontakteLogin.java
index 1ccf36b6..55dfd202 100644
--- a/juick-www/src/main/java/com/juick/www/VKontakteLogin.java
+++ b/juick-www/src/main/java/com/juick/www/VKontakteLogin.java
@@ -88,7 +88,7 @@ public class VKontakteLogin {
}
try {
- com.juick.www.vk.User jsonUser = mapper.readValue(graph, GraphResponse.class).getUser();
+ com.juick.www.vk.User jsonUser = mapper.readValue(graph, UsersResponse.class).getUsers().get(0);
String vkName = jsonUser.getFirstName() + " " + jsonUser.getLastName();
String vkLink = jsonUser.getScreenName();