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
|
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
|
return profile.viewer?.muted || profile.viewer?.mutedByList
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {AtUri} from '@atproto/api'
|
import {AtUri} from '@atproto/api'
|
||||||
|
|
||||||
import * as atp from '#/types/bsky'
|
import * as bsky from '#/types/bsky'
|
||||||
|
|
||||||
export function createStarterPackLinkFromAndroidReferrer(
|
export function createStarterPackLinkFromAndroidReferrer(
|
||||||
referrerQueryString: string,
|
referrerQueryString: string,
|
||||||
@@ -81,7 +81,7 @@ export function httpStarterPackUriToAtUri(httpUri?: string): string | null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getStarterPackOgCard(
|
export function getStarterPackOgCard(
|
||||||
didOrStarterPack: atp.starterPack.AnyStarterPackView | string,
|
didOrStarterPack: bsky.starterPack.AnyStarterPackView | string,
|
||||||
rkey?: string,
|
rkey?: string,
|
||||||
) {
|
) {
|
||||||
if (typeof didOrStarterPack === 'string') {
|
if (typeof didOrStarterPack === 'string') {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import {AppModerationCause} from '#/components/Pills'
|
|||||||
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
|
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
|
||||||
import {RichText} from '#/components/RichText'
|
import {RichText} from '#/components/RichText'
|
||||||
import {SubtleWebHover} from '#/components/SubtleWebHover'
|
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 {Link, TextLink, TextLinkOnWebOnly} from '../util/Link'
|
||||||
import {AviFollowButton} from './AviFollowButton'
|
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),
|
* If `post[0]` in this slice is the actual root post (not an orphan thread),
|
||||||
* then we may have a threadgate record to reference
|
* then we may have a threadgate record to reference
|
||||||
*/
|
*/
|
||||||
const threadgateRecord = atp.dangerousIsType<AppBskyFeedThreadgate.Record>(
|
const threadgateRecord = bsky.dangerousIsType<AppBskyFeedThreadgate.Record>(
|
||||||
rootPost.threadgate?.record,
|
rootPost.threadgate?.record,
|
||||||
AppBskyFeedThreadgate.isRecord,
|
AppBskyFeedThreadgate.isRecord,
|
||||||
)
|
)
|
||||||
@@ -463,7 +463,7 @@ let PostContent = ({
|
|||||||
})
|
})
|
||||||
const additionalPostAlerts: AppModerationCause[] = React.useMemo(() => {
|
const additionalPostAlerts: AppModerationCause[] = React.useMemo(() => {
|
||||||
const isPostHiddenByThreadgate = threadgateHiddenReplies.has(post.uri)
|
const isPostHiddenByThreadgate = threadgateHiddenReplies.has(post.uri)
|
||||||
const rootPostUri = atp.dangerousIsType<AppBskyFeedPost.Record>(
|
const rootPostUri = bsky.dangerousIsType<AppBskyFeedPost.Record>(
|
||||||
post.record,
|
post.record,
|
||||||
AppBskyFeedPost.isRecord,
|
AppBskyFeedPost.isRecord,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import {
|
|||||||
shouldShowKnownFollowers,
|
shouldShowKnownFollowers,
|
||||||
} from '#/components/KnownFollowers'
|
} from '#/components/KnownFollowers'
|
||||||
import * as Pills from '#/components/Pills'
|
import * as Pills from '#/components/Pills'
|
||||||
import * as atp from '#/types/bsky'
|
import * as bsky from '#/types/bsky'
|
||||||
import {Link} from '../util/Link'
|
import {Link} from '../util/Link'
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
import {PreviewableUserAvatar} from '../util/UserAvatar'
|
import {PreviewableUserAvatar} from '../util/UserAvatar'
|
||||||
@@ -42,12 +42,12 @@ export function ProfileCard({
|
|||||||
showKnownFollowers,
|
showKnownFollowers,
|
||||||
}: {
|
}: {
|
||||||
testID?: string
|
testID?: string
|
||||||
profile: atp.profile.AnyProfileView
|
profile: bsky.profile.AnyProfileView
|
||||||
noModFilter?: boolean
|
noModFilter?: boolean
|
||||||
noBg?: boolean
|
noBg?: boolean
|
||||||
noBorder?: boolean
|
noBorder?: boolean
|
||||||
renderButton?: (
|
renderButton?: (
|
||||||
profile: Shadow<atp.profile.AnyProfileView>,
|
profile: Shadow<bsky.profile.AnyProfileView>,
|
||||||
) => React.ReactNode
|
) => React.ReactNode
|
||||||
onPress?: () => void
|
onPress?: () => void
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<ViewStyle>
|
||||||
|
|||||||
Reference in New Issue
Block a user