about summary refs log tree commit diff
path: root/bskyembed/src/components/embed.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-23 03:52:46 +0100
committerGitHub <noreply@github.com>2024-05-23 03:52:46 +0100
commit334483ad9a77ae7a83873264565f9a85241bd50a (patch)
tree2cfb2609ea3e2d2b0f2d5ded406ed78c9cddc334 /bskyembed/src/components/embed.tsx
parent69f468485928f7c325eef8854caa177d72da2f0c (diff)
downloadvoidsky-334483ad9a77ae7a83873264565f9a85241bd50a.tar.zst
[Embeds] stop adding tracking params to non-bsky.app links (#4167)
* don't add tracking params on non-bsky.app links

* validate facets
Diffstat (limited to 'bskyembed/src/components/embed.tsx')
-rw-r--r--bskyembed/src/components/embed.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bskyembed/src/components/embed.tsx b/bskyembed/src/components/embed.tsx
index 4457defce..1dadfee38 100644
--- a/bskyembed/src/components/embed.tsx
+++ b/bskyembed/src/components/embed.tsx
@@ -193,7 +193,7 @@ export function Embed({
 function Info({children}: {children: ComponentChildren}) {
   return (
     <div className="w-full rounded-lg border py-2 px-2.5 flex-row flex gap-2 bg-neutral-50">
-      <img src={infoIcon as string} className="w-4 h-4 shrink-0 mt-0.5" />
+      <img src={infoIcon} className="w-4 h-4 shrink-0 mt-0.5" />
       <p className="text-sm text-textLight">{children}</p>
     </div>
   )
@@ -293,7 +293,8 @@ function ExternalEmbed({
   return (
     <Link
       href={content.external.uri}
-      className="w-full rounded-lg overflow-hidden border flex flex-col items-stretch">
+      className="w-full rounded-lg overflow-hidden border flex flex-col items-stretch"
+      disableTracking>
       {content.external.thumb && (
         <img
           src={content.external.thumb}