diff --git a/bskyembed/src/screens/landing.tsx b/bskyembed/src/screens/landing.tsx index 7c8ef281..06b45598 100644 --- a/bskyembed/src/screens/landing.tsx +++ b/bskyembed/src/screens/landing.tsx @@ -86,7 +86,14 @@ function LandingPage() { if (!AppBskyFeedDefs.isThreadViewPost(data.thread)) { throw new Error('Post not found') } - + const pwiOptOut = !!data.thread.post.author.labels?.find( + label => label.val === '!no-unauthenticated', + ) + if (pwiOptOut) { + throw new Error( + 'The author of this post has requested their posts not be displayed on external sites.', + ) + } setThread(data.thread) } catch (err) { console.error(err) @@ -113,25 +120,15 @@ function LandingPage() { className="border rounded-lg py-3 w-full max-w-[600px] px-4" placeholder={DEFAULT_POST} /> -
{error}
{error}
)}