fix: inefficient method of extracting url from text (#741)

* fix: inefficient method of extracting url from text
This fixes the thumbnail error when submitting a
Google Maps link.

* fix: link preview with redirects
This commit is contained in:
Ezequiel Moraes
2024-04-28 07:48:25 -03:00
committed by GitHub
parent 3b87d74f04
commit f5c1affc4d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export const getUrlInfo = async(
const info = await getLinkPreview(previewLink, {
...opts.fetchOpts,
followRedirects: 'manual',
followRedirects: 'follow',
handleRedirects: (baseURL: string, forwardedURL: string) => {
const urlObj = new URL(baseURL)
const forwardedURLObj = new URL(forwardedURL)