mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-04 05:53:07 -05:00
5e7c079787
Port 11786f1114f9dfb5a17810d14477a94162f94064 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
8 lines
314 B
TypeScript
8 lines
314 B
TypeScript
import { apiRequestPut } from 'flavours/glitch/api';
|
|
import type { ApiMediaAttachmentJSON } from 'flavours/glitch/api_types/media_attachments';
|
|
|
|
export const apiUpdateMedia = (
|
|
id: string,
|
|
params?: { description?: string; focus?: string },
|
|
) => apiRequestPut<ApiMediaAttachmentJSON>(`v1/media/${id}`, params);
|