diff --git a/pkg/view/src/components/PostAttachments.tsx b/pkg/view/src/components/PostAttachments.tsx index 0379424..7f59ff8 100644 --- a/pkg/view/src/components/PostAttachments.tsx +++ b/pkg/view/src/components/PostAttachments.tsx @@ -101,7 +101,7 @@ export default function PostAttachments(props: { attachments: any[] }) { } 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(() => {