1
0
Fork 0
forked from gitea/nas

Add ability to feature and unfeature hashtags from web UI (#34490)

This commit is contained in:
Eugen Rochko 2025-04-28 13:44:01 +02:00 committed by GitHub
parent 926c67c648
commit 40157e063d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 74 additions and 13 deletions

View file

@ -10,6 +10,12 @@ export const apiFollowTag = (tagId: string) =>
export const apiUnfollowTag = (tagId: string) =>
apiRequestPost<ApiHashtagJSON>(`v1/tags/${tagId}/unfollow`);
export const apiFeatureTag = (tagId: string) =>
apiRequestPost<ApiHashtagJSON>(`v1/tags/${tagId}/feature`);
export const apiUnfeatureTag = (tagId: string) =>
apiRequestPost<ApiHashtagJSON>(`v1/tags/${tagId}/unfeature`);
export const apiGetFollowedTags = async (url?: string) => {
const response = await api().request<ApiHashtagJSON[]>({
method: 'GET',