diff options
author | Vitaly Takmazov | 2018-02-09 11:51:09 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-09 11:51:09 +0300 |
commit | d85787b7aa2b8f41fe1579ea553a3ca86f0b3c98 (patch) | |
tree | 31555904880f07e27401dddc86354d9e36a9e7b7 /juick-server/src/main/java/com/juick/server/CrosspostManager.java | |
parent | c9a59c945b1a9f0f36bf397d88ea0de0ea22f1fe (diff) |
server: post top to twitter from service user
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/CrosspostManager.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/CrosspostManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/CrosspostManager.java b/juick-server/src/main/java/com/juick/server/CrosspostManager.java index edffaf71..1752e1ca 100644 --- a/juick-server/src/main/java/com/juick/server/CrosspostManager.java +++ b/juick-server/src/main/java/com/juick/server/CrosspostManager.java @@ -151,7 +151,7 @@ public class CrosspostManager implements ApplicationListener<MessageEvent> { return ret; } - private void twitterPost(final com.juick.Message jmsg) { + void twitterPost(final com.juick.Message jmsg) { crosspostService.getTwitterToken(jmsg.getUser().getUid()).ifPresent(t -> { String status = MessageUtils.getMessageHashTags(jmsg) + StringUtils.defaultString(jmsg.getText()); if (status.length() > 255) { |