diff options
author | Vitaly Takmazov | 2017-10-15 05:37:18 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-15 19:50:15 +0300 |
commit | 9a4add44ecbd32dea6ac3d30fd81ae1ac82e3dbc (patch) | |
tree | 38b7a4ba01d1fc47841d3ba2787209b2b2a2de9e /juick-www | |
parent | aeda9e3733e685f5069b5cfbb16272cd32073fa0 (diff) |
api: ImagesService
Diffstat (limited to 'juick-www')
-rw-r--r-- | juick-www/build.gradle | 1 | ||||
-rw-r--r-- | juick-www/src/main/java/com/juick/www/configuration/WwwInitializer.java | 2 | ||||
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/UserThread.java | 2 |
3 files changed, 1 insertions, 4 deletions
diff --git a/juick-www/build.gradle b/juick-www/build.gradle index 91d48c80..3ccb2c6c 100644 --- a/juick-www/build.gradle +++ b/juick-www/build.gradle @@ -24,7 +24,6 @@ apply plugin: 'org.akhikhl.gretty' dependencies { compile project(':juick-server-web') - compile project(':juick-server-jdbc') compile 'com.github.scribejava:scribejava-apis:4.2.0' compile 'com.github.ooxi:serialized-php-parser:0.5.0' compile 'com.sun.mail:javax.mail:1.6.0' diff --git a/juick-www/src/main/java/com/juick/www/configuration/WwwInitializer.java b/juick-www/src/main/java/com/juick/www/configuration/WwwInitializer.java index 3a97c4be..c621c450 100644 --- a/juick-www/src/main/java/com/juick/www/configuration/WwwInitializer.java +++ b/juick-www/src/main/java/com/juick/www/configuration/WwwInitializer.java @@ -17,7 +17,6 @@ package com.juick.www.configuration; -import com.juick.configuration.DataConfiguration; import com.juick.configuration.SearchConfiguration; import org.apache.commons.codec.CharEncoding; import org.springframework.web.filter.CharacterEncodingFilter; @@ -37,7 +36,6 @@ public class WwwInitializer extends AbstractAnnotationConfigDispatcherServletIni return new Class<?>[]{ WwwServletConfiguration.class, WwwAppConfiguration.class, - DataConfiguration.class, SearchConfiguration.class, SapeConfiguration.class, WebSecurityConfig.class diff --git a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java index b2c3c1f5..88217b9d 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java +++ b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java @@ -112,7 +112,7 @@ public class UserThread { headers += "<meta name=\"robots\" content=\"noindex\"/>"; } String cardType = StringUtils.isNotEmpty(msg.getAttachmentType()) ? "summary_large_image" : "summary"; - String msgImage = StringUtils.isNotEmpty(msg.getAttachmentType()) ? msg.getPhotoURLs().getMedium() + String msgImage = StringUtils.isNotEmpty(msg.getAttachmentType()) ? msg.getAttachment().getMedium().getUrl() : "https://i.juick.com/a/" + msg.getUser().getUid() + ".png"; model.addAttribute("ogtype", "article"); String cardDescription = StringEscapeUtils.escapeHtml4(PlainTextFormatter.formatTwitterCard(msg)); |