aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-21 14:03:58 +0300
committerGravatar Vitaly Takmazov2016-07-21 14:03:58 +0300
commit477dc450dca99616fa335c155c4be9048a69deee (patch)
tree36b706bc9d974f4aaa99e567788e6df6cdad4496 /juick-www/src
parent491f22135b985e1dfa8d2ff15ea38e59269659c1 (diff)
www: fix Thumbnailator paths
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/java/com/juick/www/NewMessage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/NewMessage.java b/juick-www/src/main/java/com/juick/www/NewMessage.java
index 63cfe3ed..a179fac8 100644
--- a/juick-www/src/main/java/com/juick/www/NewMessage.java
+++ b/juick-www/src/main/java/com/juick/www/NewMessage.java
@@ -373,7 +373,7 @@ public class NewMessage {
String attachmentURL = "http://i.juick.com/photos-1024/" + fname;
Path origName = Paths.get(imgDir, "p", fname);
- Files.move(Paths.get(tmpDir, attachmentType), origName);
+ Files.move(Paths.get(tmpDir, attachmentFName), origName);
Thumbnails.of(origName.toFile()).size(1024, 1024).outputQuality(0.9)
.toFile(Paths.get(imgDir, "photos-1024", fname).toFile());
Thumbnails.of(origName.toFile()).size(512, 512).outputQuality(0.9)