-
-
Notifications
You must be signed in to change notification settings - Fork 95
Link/Image previews for tags #616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Kudos, SonarCloud Quality Gate passed! |
0072c45
to
5b5e75b
Compare
This pull request is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days. |
yikes. ill have a look again 😬 |
5b5e75b
to
17ffde3
Compare
707a9fd
to
9ba00ea
Compare
Kudos, SonarCloud Quality Gate passed! |
8 days since last change, merging |
Overview
Fixes #270 by implementing automatic link and image previews to the
/tag
command.Image only preview:

Link preview:

Utility
This feature is also available as general purpose utility via the
LinkPreviews
class, yielding recordsLinkPreview
.The utility offers two methods:
static List<String> extractLinks(String content)
static CompletableFuture<List<LinkPreview>> createLinkPreviews(List<String> links)
Features like #637 will likely make use of this as well.
Dependencies
Adds
io.github.url-detector:url-detector:0.1.23
to the deps. URL regex is not something we want to have in our own code base lol.Also adds JSoup for the OpenGraph/Twitter meta-extraction.
Checklist
possibly unit tests(not today)