Skip to content

Commit b80feef

Browse files
authored
Fixed bug with linkpreview OG twitter broken (#703)
1 parent fa434fe commit b80feef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/utils/LinkPreviews.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private static Optional<String> parseOpenGraphTwitterMeta(Document doc, String m
176176
String value = Optional
177177
.ofNullable(doc.selectFirst("meta[property=og:%s]".formatted(metaProperty)))
178178
.or(() -> Optional
179-
.ofNullable(doc.selectFirst("meta[property=twitter:%s".formatted(metaProperty))))
179+
.ofNullable(doc.selectFirst("meta[property=twitter:%s]".formatted(metaProperty))))
180180
.map(element -> element.attr("content"))
181181
.orElse(fallback);
182182
if (value == null) {

0 commit comments

Comments
 (0)