aboutsummaryrefslogtreecommitdiff
path: root/juick-crosspost/src/main/java/com/juick/service/Crosspost.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-crosspost/src/main/java/com/juick/service/Crosspost.java')
-rw-r--r--juick-crosspost/src/main/java/com/juick/service/Crosspost.java3
1 files changed, 2 insertions, 1 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;
}