mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-27 04:46:41 +00:00
Change design of edit media modal in web UI (#33516)
This commit is contained in:
7
app/javascript/mastodon/api/compose.ts
Normal file
7
app/javascript/mastodon/api/compose.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { apiRequestPut } from 'mastodon/api';
|
||||
import type { ApiMediaAttachmentJSON } from 'mastodon/api_types/media_attachments';
|
||||
|
||||
export const apiUpdateMedia = (
|
||||
id: string,
|
||||
params?: { description?: string; focus?: string },
|
||||
) => apiRequestPut<ApiMediaAttachmentJSON>(`v1/media/${id}`, params);
|
||||
Reference in New Issue
Block a user