1
0
Fork 0
forked from gitea/nas

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,
});