🐛 Fix attachments display
This commit is contained in:
parent
7ab1b128df
commit
f8f8c3c3b5
@ -101,7 +101,7 @@ export default function PostAttachments(props: { attachments: any[] }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getUrl(item: any): string {
|
function getUrl(item: any): string {
|
||||||
return item.external_url ?? `/api/attachments/o/${item.file_id}`;
|
return item.external_url ? item.external_url : `/api/attachments/o/${item.file_id}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user