aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/TwitterManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-21 03:26:49 +0300
committerGravatar Vitaly Takmazov2022-12-21 03:26:49 +0300
commitcf437e3004149efe3b65e80d618374eb28cca641 (patch)
tree328147d3209d9a4330c1576c9acb4c2b6cc358b6 /src/main/java/com/juick/TwitterManager.java
parent1ad1b73a7b85e7e907de1870991a8849487f9543 (diff)
external tokens: adopt records
Diffstat (limited to 'src/main/java/com/juick/TwitterManager.java')
-rw-r--r--src/main/java/com/juick/TwitterManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/TwitterManager.java b/src/main/java/com/juick/TwitterManager.java
index a6a53e6c..f4cab89b 100644
--- a/src/main/java/com/juick/TwitterManager.java
+++ b/src/main/java/com/juick/TwitterManager.java
@@ -55,7 +55,7 @@ public class TwitterManager implements NotificationListener {
status += " http://juick.com/" + jmsg.getMid();
var twitter = Twitter.newBuilder()
.oAuthConsumer(twitter_consumer_key, twitter_consumer_secret)
- .oAuthAccessToken(t.getToken(), t.getSecret()).build();
+ .oAuthAccessToken(t.token(), t.secret()).build();
try {
twitter.v1().tweets().updateStatus(status);
} catch (Exception e) {