feat: Add "Followers you know" widget to user profiles (#34652)

This commit is contained in:
diondiondion
2025-05-13 08:38:18 +02:00
committed by GitHub
parent c9a554bdca
commit b135a831ea
12 changed files with 213 additions and 17 deletions

View File

@@ -1,5 +1,8 @@
import { apiRequestPost, apiRequestGet } from 'mastodon/api';
import type { ApiAccountJSON } from 'mastodon/api_types/accounts';
import type {
ApiAccountJSON,
ApiFamiliarFollowersJSON,
} from 'mastodon/api_types/accounts';
import type { ApiRelationshipJSON } from 'mastodon/api_types/relationships';
import type { ApiHashtagJSON } from 'mastodon/api_types/tags';
@@ -31,3 +34,8 @@ export const apiGetFeaturedTags = (id: string) =>
export const apiGetEndorsedAccounts = (id: string) =>
apiRequestGet<ApiAccountJSON>(`v1/accounts/${id}/endorsements`);
export const apiGetFamiliarFollowers = (id: string) =>
apiRequestGet<ApiFamiliarFollowersJSON>('/v1/accounts/familiar_followers', {
id,
});