We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8157243 + a423fad commit ef692dcCopy full SHA for ef692dc
WableServer/src/main/java/com/wable/www/WableServer/api/curation/service/CurationCommandService.java
@@ -26,7 +26,12 @@ public void postCuration(CurationPostRequestDto curationPostRequestDto) {
26
String thumbnail = null;
27
28
try {
29
- Document doc = Jsoup.connect(link).get();
+ Document doc = Jsoup.connect(link)
30
+ .userAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
31
+ "AppleWebKit/537.36 (KHTML, like Gecko) " +
32
+ "Chrome/120.0.0.0 Safari/537.36")
33
+ .timeout(5000)
34
+ .get();
35
36
Element ogTitle = doc.selectFirst("meta[property=og:title]");
37
if (ogTitle != null) {
0 commit comments