about summary refs log tree commit diff
path: root/bskyembed/src/screens
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/screens
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/screens')
-rw-r--r--bskyembed/src/screens/landing.tsx4
-rw-r--r--bskyembed/src/screens/post.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/bskyembed/src/screens/landing.tsx b/bskyembed/src/screens/landing.tsx
index 72612db0e..a9e08cd3f 100644
--- a/bskyembed/src/screens/landing.tsx
+++ b/bskyembed/src/screens/landing.tsx
@@ -112,7 +112,7 @@ function LandingPage() {
       <Link
         href="https://bsky.social/about"
         className="transition-transform hover:scale-110">
-        <img src={logo as string} className="h-10" />
+        <img src={logo} className="h-10" />
       </Link>
 
       <h1 className="text-4xl font-bold text-center">Embed a Bluesky Post</h1>
@@ -125,7 +125,7 @@ function LandingPage() {
         placeholder={DEFAULT_POST}
       />
 
-      <img src={arrowBottom as string} className="w-6" />
+      <img src={arrowBottom} className="w-6" />
 
       {loading ? (
         <Skeleton />
diff --git a/bskyembed/src/screens/post.tsx b/bskyembed/src/screens/post.tsx
index 365227cd4..337bf0100 100644
--- a/bskyembed/src/screens/post.tsx
+++ b/bskyembed/src/screens/post.tsx
@@ -52,7 +52,7 @@ function PwiOptOut({thread}: {thread: AppBskyFeedDefs.ThreadViewPost}) {
       <Link
         href={href}
         className="transition-transform hover:scale-110 absolute top-4 right-4">
-        <img src={logo as string} className="h-6" />
+        <img src={logo} className="h-6" />
       </Link>
       <div className="w-full py-12 gap-4 flex flex-col items-center">
         <p className="max-w-80 text-center w-full text-textLight">
@@ -75,7 +75,7 @@ function ErrorMessage() {
       <Link
         href="https://bsky.app/"
         className="transition-transform hover:scale-110 absolute top-4 right-4">
-        <img src={logo as string} className="h-6" />
+        <img src={logo} className="h-6" />
       </Link>
       <p className="my-16 text-center w-full text-textLight">
         Post not found, it may have been deleted.