mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-14 11:04:18 +01:00
media: fix setting description
This commit is contained in:
@@ -5,7 +5,6 @@ import { Time } from '@/utils/time.ts';
|
||||
export interface DittoUpload {
|
||||
id: string;
|
||||
pubkey: string;
|
||||
description?: string;
|
||||
url: string;
|
||||
tags: string[][];
|
||||
uploadedAt: Date;
|
||||
|
||||
@@ -54,7 +54,7 @@ const updateMediaController: AppController = async (c) => {
|
||||
|
||||
dittoUploads.set(id, {
|
||||
...upload,
|
||||
description,
|
||||
tags: upload.tags.filter(([name]) => name !== 'alt').concat([['alt', description]]),
|
||||
});
|
||||
|
||||
return c.json({ message: 'ok' }, 200);
|
||||
|
||||
Reference in New Issue
Block a user