mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: do not generate preview if title not present
This commit is contained in:
@@ -48,7 +48,7 @@ export const getUrlInfo = async(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const info = await getLinkPreview(previewLink, opts.fetchOpts)
|
const info = await getLinkPreview(previewLink, opts.fetchOpts)
|
||||||
if(info && 'title' in info) {
|
if(info && 'title' in info && info.title) {
|
||||||
const [image] = info.images
|
const [image] = info.images
|
||||||
|
|
||||||
const urlInfo: WAUrlInfo = {
|
const urlInfo: WAUrlInfo = {
|
||||||
|
|||||||
Reference in New Issue
Block a user