aboutsummaryrefslogtreecommitdiff
path: root/juick-crosspost/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-27 16:23:28 +0300
committerGravatar Vitaly Takmazov2018-01-12 09:12:09 +0300
commitbf5f2142d73a5745124d03f6b6f06c59873e47de (patch)
tree969d43a3bf6d39197313e16080b8b8472975cbe2 /juick-crosspost/src/main/java/com
parent0c78bc5c08632718eb94c0021cf3ee47fb8ddb82 (diff)
Messenger bot
Diffstat (limited to 'juick-crosspost/src/main/java/com')
-rw-r--r--juick-crosspost/src/main/java/com/juick/service/Crosspost.java3
-rw-r--r--juick-crosspost/src/main/java/com/juick/service/rest/CrosspostRestService.java4
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