diff options
Diffstat (limited to 'juick-crosspost/src/main/java/com/juick/service')
-rw-r--r-- | juick-crosspost/src/main/java/com/juick/service/Crosspost.java | 3 | ||||
-rw-r--r-- | juick-crosspost/src/main/java/com/juick/service/rest/CrosspostRestService.java | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/juick-crosspost/src/main/java/com/juick/service/Crosspost.java b/juick-crosspost/src/main/java/com/juick/service/Crosspost.java index 55c4407c..7fcb9a52 100644 --- a/juick-crosspost/src/main/java/com/juick/service/Crosspost.java +++ b/juick-crosspost/src/main/java/com/juick/service/Crosspost.java @@ -68,7 +68,8 @@ public class Crosspost implements ApplicationListener<MessageEvent> { } public boolean facebookPost(final com.juick.Message jmsg) { - String token = crosspostService.getFacebookToken(jmsg.getUser().getUid()).orElse(StringUtils.EMPTY); + String token = crosspostService.getFacebookTokens(jmsg.getUser().getUid()) + .orElse(Pair.of(StringUtils.EMPTY, StringUtils.EMPTY)).getRight(); if (token.isEmpty()) { return false; } diff --git a/juick-crosspost/src/main/java/com/juick/service/rest/CrosspostRestService.java b/juick-crosspost/src/main/java/com/juick/service/rest/CrosspostRestService.java index 52b72c3f..dbc0bdc9 100644 --- a/juick-crosspost/src/main/java/com/juick/service/rest/CrosspostRestService.java +++ b/juick-crosspost/src/main/java/com/juick/service/rest/CrosspostRestService.java @@ -33,8 +33,8 @@ public class CrosspostRestService implements CrosspostService { } @Override - public Optional<String> getFacebookToken(int uid) { - return null; + public Optional<Pair<String, String>> getFacebookTokens(int uid) { + return Optional.empty(); } @Override |