rename atp bsky

This commit is contained in:
Eric Bailey
2025-02-11 10:26:07 -06:00
parent 19a05695b2
commit 5a13c4c1fb
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -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
}
+2 -2
View File
@@ -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') {
+3 -3
View File
@@ -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<AppBskyFeedThreadgate.Record>(
const threadgateRecord = bsky.dangerousIsType<AppBskyFeedThreadgate.Record>(
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<AppBskyFeedPost.Record>(
const rootPostUri = bsky.dangerousIsType<AppBskyFeedPost.Record>(
post.record,
AppBskyFeedPost.isRecord,
)
+3 -3
View File
@@ -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<atp.profile.AnyProfileView>,
profile: Shadow<bsky.profile.AnyProfileView>,
) => React.ReactNode
onPress?: () => void
style?: StyleProp<ViewStyle>