diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-26 18:24:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-26 08:24:46 -0700 |
commit | b70e5b2f387e8de6dac5d388aee1ccbf5b217adc (patch) | |
tree | e540d731ec004e58e1280c6382b00b6947d03e63 /bskyembed/src/screens | |
parent | 5a074fa37acafb0cf11acbdd0a931411b1c63aa2 (diff) | |
download | voidsky-b70e5b2f387e8de6dac5d388aee1ccbf5b217adc.tar.zst |
Add verification checkmarks to `embed.bsky.app` (#8644)
* update vite+typescript * update atproto api to latest, split out utils * add checkmark to post * add checkie to embed * revert change to example post * fix ext link color
Diffstat (limited to 'bskyembed/src/screens')
-rw-r--r-- | bskyembed/src/screens/landing.tsx | 13 | ||||
-rw-r--r-- | bskyembed/src/screens/post.tsx | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/bskyembed/src/screens/landing.tsx b/bskyembed/src/screens/landing.tsx index 880b71337..bb650241f 100644 --- a/bskyembed/src/screens/landing.tsx +++ b/bskyembed/src/screens/landing.tsx @@ -14,9 +14,11 @@ import { import {Container} from '../components/container' import {Link} from '../components/link' import {Post} from '../components/post' -import {niceDate} from '../utils' +import * as bsky from '../types/bsky' +import {niceDate} from '../util/nice-date' -const DEFAULT_POST = 'https://bsky.app/profile/emilyliu.me/post/3jzn6g7ixgq2y' +const DEFAULT_POST = + 'https://bsky.app/profile/did:plc:vjug55kidv6sye7ykr5faxxn/post/3jzn6g7ixgq2y' const DEFAULT_URI = 'at://did:plc:vjug55kidv6sye7ykr5faxxn/app.bsky.feed.post/3jzn6g7ixgq2y' @@ -222,7 +224,12 @@ function Snippet({ const snippet = useMemo(() => { const record = thread.post.record - if (!AppBskyFeedPost.isRecord(record)) { + if ( + !bsky.dangerousIsType<AppBskyFeedPost.Record>( + record, + AppBskyFeedPost.isRecord, + ) + ) { return '' } diff --git a/bskyembed/src/screens/post.tsx b/bskyembed/src/screens/post.tsx index 4cd72b69b..83914f66f 100644 --- a/bskyembed/src/screens/post.tsx +++ b/bskyembed/src/screens/post.tsx @@ -8,7 +8,7 @@ import {applyTheme, initSystemColorMode} from '../color-mode' import {Container} from '../components/container' import {Link} from '../components/link' import {Post} from '../components/post' -import {getRkey} from '../utils' +import {getRkey} from '../util/rkey' const root = document.getElementById('app') if (!root) throw new Error('No root element') |