aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/CrosspostComponent.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-12-01 16:28:10 +0300
committerGravatar Vitaly Takmazov2015-12-01 16:29:57 +0300
commit398d27d64f97195c24b0ae043e3872d51a1b2f39 (patch)
tree1948d284e2f0bd3ede8663c102f190fedb5b9459 /src/main/java/com/juick/CrosspostComponent.java
parent109cf4644498a8031f73c07e9422b211234f07a4 (diff)
twitter.pl -> TwitterAuth
Diffstat (limited to 'src/main/java/com/juick/CrosspostComponent.java')
-rw-r--r--src/main/java/com/juick/CrosspostComponent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/CrosspostComponent.java b/src/main/java/com/juick/CrosspostComponent.java
index b05dd1be..73791c5e 100644
--- a/src/main/java/com/juick/CrosspostComponent.java
+++ b/src/main/java/com/juick/CrosspostComponent.java
@@ -77,7 +77,7 @@ public class CrosspostComponent implements ServletContextListener, Stream.Strea
public void run() {
try {
Properties conf = new Properties();
- conf.load(new FileInputStream("/etc/juick/crosspost.conf"));
+ conf.load(sce.getServletContext().getResourceAsStream("WEB-INF/juick.conf"));
twitter_consumer_key = conf.getProperty("twitter_consumer_key", "");
twitter_consumer_secret = conf.getProperty("twitter_consumer_secret", "");