From b6338fa486392295640d0c4d5908ecaa0f4d1fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Parada?= Date: Sat, 26 Oct 2024 00:48:52 -0300 Subject: [PATCH] web/app: scan bsky --- web/app/components/post-item.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/app/components/post-item.js b/web/app/components/post-item.js index 2d90b32..1f2dc26 100644 --- a/web/app/components/post-item.js +++ b/web/app/components/post-item.js @@ -516,7 +516,12 @@ function MediaScroller({ urls }) { div.innerHTML = json.html items.push(html`${div}`) setTimeout(() => { - addBskyWidget() + addBskyWidget().then(() => { + if ("bsky" in window) { + // @ts-ignore + window.bsky.scan(div) + } + }) }, 1) continue }