mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
media: fix setting description
This commit is contained in:
parent
8efd6fbb20
commit
99a25e1e18
2 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ import { Time } from '@/utils/time.ts';
|
||||||
export interface DittoUpload {
|
export interface DittoUpload {
|
||||||
id: string;
|
id: string;
|
||||||
pubkey: string;
|
pubkey: string;
|
||||||
description?: string;
|
|
||||||
url: string;
|
url: string;
|
||||||
tags: string[][];
|
tags: string[][];
|
||||||
uploadedAt: Date;
|
uploadedAt: Date;
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ const updateMediaController: AppController = async (c) => {
|
||||||
|
|
||||||
dittoUploads.set(id, {
|
dittoUploads.set(id, {
|
||||||
...upload,
|
...upload,
|
||||||
description,
|
tags: upload.tags.filter(([name]) => name !== 'alt').concat([['alt', description]]),
|
||||||
});
|
});
|
||||||
|
|
||||||
return c.json({ message: 'ok' }, 200);
|
return c.json({ message: 'ok' }, 200);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue