mirror of
https://github.com/rikkaneko/paste.git
synced 2025-06-06 16:45:41 +00:00
Fix undefined paste type
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
1bf8f08ee6
commit
4408b4027b
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ async function get_paste_info(uuid: string, descriptor: PasteIndexEntry, env: En
|
|||
let content = dedent`
|
||||
id: ${uuid}
|
||||
link: ${link}
|
||||
type: ${descriptor.type}
|
||||
type: ${descriptor.type ?? 'paste'}
|
||||
title: ${descriptor.title?.trim() || '-'}
|
||||
mime-type: ${descriptor.mime_type ?? '-'}
|
||||
size: ${descriptor.size} bytes (${to_human_readable_size(descriptor.size)})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue