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

This commit is contained in:
Eugen Rochko authored and GitHub committed 2025-04-28 11:44:01 +00:00
1 parent 926c67c648
commit 40157e063d
5 files changed
+74 -13

No files matched your search

+6
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',