rename atp bsky
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user