Update team handles and fetch more data in discovery

zio/stable
Paul Frazee 2023-03-15 17:29:38 -05:00
parent 53fc5bf336
commit 64c8689a29
2 changed files with 9 additions and 9 deletions

View File

@ -6,10 +6,10 @@ export const MAX_DESCRIPTION = 256
export const PROD_TEAM_HANDLES = [ export const PROD_TEAM_HANDLES = [
'jay.bsky.social', 'jay.bsky.social',
'paul.bsky.social', 'pfrazee.com',
'dan.bsky.social', 'divy.zone',
'divy.bsky.social', 'dholms.xyz',
'why.bsky.social', 'why.bsky.world',
'iamrosewang.bsky.social', 'iamrosewang.bsky.social',
] ]
export const STAGING_TEAM_HANDLES = [ export const STAGING_TEAM_HANDLES = [
@ -141,12 +141,10 @@ export const PROD_SUGGESTED_FOLLOWS = [
'pwang', 'pwang',
'martin', 'martin',
'jack', 'jack',
'dan',
'why',
'divy',
'jay', 'jay',
'paul', ]
].map(handle => `${handle}.bsky.social`) .map(handle => `${handle}.bsky.social`)
.concat(['pfrazee.com', 'divy.zone', 'dholms.xyz', 'why.bsky.world'])
export const STAGING_SUGGESTED_FOLLOWS = ['arcalinea', 'paul', 'paul2'].map( export const STAGING_SUGGESTED_FOLLOWS = ['arcalinea', 'paul', 'paul2'].map(
handle => `${handle}.staging.bsky.dev`, handle => `${handle}.staging.bsky.dev`,
) )

View File

@ -48,6 +48,8 @@ export class SuggestedPostsView {
const responses = await getMultipleAuthorsPosts( const responses = await getMultipleAuthorsPosts(
this.rootStore, this.rootStore,
TEAM_HANDLES(String(this.rootStore.agent.service)), TEAM_HANDLES(String(this.rootStore.agent.service)),
undefined,
30,
) )
runInAction(() => { runInAction(() => {
const finalPosts = mergePosts(responses, {repostsOnly: true}) const finalPosts = mergePosts(responses, {repostsOnly: true})