diff --git a/src/lib/moderation/blocked-and-muted.ts b/src/lib/moderation/blocked-and-muted.ts index 8eaab80694..27c461a3d4 100644 --- a/src/lib/moderation/blocked-and-muted.ts +++ b/src/lib/moderation/blocked-and-muted.ts @@ -1,9 +1,9 @@ -import * as atp from '#/types/bsky' +import * as bsky from '#/types/bsky' -export function isBlockedOrBlocking(profile: atp.profile.AnyProfileView) { +export function isBlockedOrBlocking(profile: bsky.profile.AnyProfileView) { return profile.viewer?.blockedBy || profile.viewer?.blocking } -export function isMuted(profile: atp.profile.AnyProfileView) { +export function isMuted(profile: bsky.profile.AnyProfileView) { return profile.viewer?.muted || profile.viewer?.mutedByList } diff --git a/src/lib/strings/starter-pack.ts b/src/lib/strings/starter-pack.ts index 609a233c0c..ced947b591 100644 --- a/src/lib/strings/starter-pack.ts +++ b/src/lib/strings/starter-pack.ts @@ -1,6 +1,6 @@ import {AtUri} from '@atproto/api' -import * as atp from '#/types/bsky' +import * as bsky from '#/types/bsky' export function createStarterPackLinkFromAndroidReferrer( referrerQueryString: string, @@ -81,7 +81,7 @@ export function httpStarterPackUriToAtUri(httpUri?: string): string | null { } export function getStarterPackOgCard( - didOrStarterPack: atp.starterPack.AnyStarterPackView | string, + didOrStarterPack: bsky.starterPack.AnyStarterPackView | string, rkey?: string, ) { if (typeof didOrStarterPack === 'string') { diff --git a/src/view/com/posts/PostFeedItem.tsx b/src/view/com/posts/PostFeedItem.tsx index 5dc8690fa3..13c243c0a5 100644 --- a/src/view/com/posts/PostFeedItem.tsx +++ b/src/view/com/posts/PostFeedItem.tsx @@ -47,7 +47,7 @@ import {AppModerationCause} from '#/components/Pills' import {ProfileHoverCard} from '#/components/ProfileHoverCard' import {RichText} from '#/components/RichText' import {SubtleWebHover} from '#/components/SubtleWebHover' -import * as atp from '#/types/bsky' +import * as bsky from '#/types/bsky' import {Link, TextLink, TextLinkOnWebOnly} from '../util/Link' import {AviFollowButton} from './AviFollowButton' @@ -233,7 +233,7 @@ let FeedItemInner = ({ * If `post[0]` in this slice is the actual root post (not an orphan thread), * then we may have a threadgate record to reference */ - const threadgateRecord = atp.dangerousIsType( + const threadgateRecord = bsky.dangerousIsType( rootPost.threadgate?.record, AppBskyFeedThreadgate.isRecord, ) @@ -463,7 +463,7 @@ let PostContent = ({ }) const additionalPostAlerts: AppModerationCause[] = React.useMemo(() => { const isPostHiddenByThreadgate = threadgateHiddenReplies.has(post.uri) - const rootPostUri = atp.dangerousIsType( + const rootPostUri = bsky.dangerousIsType( post.record, AppBskyFeedPost.isRecord, ) diff --git a/src/view/com/profile/ProfileCard.tsx b/src/view/com/profile/ProfileCard.tsx index 4139000591..bd09d65143 100644 --- a/src/view/com/profile/ProfileCard.tsx +++ b/src/view/com/profile/ProfileCard.tsx @@ -24,7 +24,7 @@ import { shouldShowKnownFollowers, } from '#/components/KnownFollowers' import * as Pills from '#/components/Pills' -import * as atp from '#/types/bsky' +import * as bsky from '#/types/bsky' import {Link} from '../util/Link' import {Text} from '../util/text/Text' import {PreviewableUserAvatar} from '../util/UserAvatar' @@ -42,12 +42,12 @@ export function ProfileCard({ showKnownFollowers, }: { testID?: string - profile: atp.profile.AnyProfileView + profile: bsky.profile.AnyProfileView noModFilter?: boolean noBg?: boolean noBorder?: boolean renderButton?: ( - profile: Shadow, + profile: Shadow, ) => React.ReactNode onPress?: () => void style?: StyleProp