Skip to content

Commit c341627

Browse files
fix: inline images breaking due to special characters (#754)
1 parent 3bb3686 commit c341627

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/platform/trpc/routers/convoRouter/convoRouter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,8 +1223,7 @@ export const convoRouter = router({
12231223
fileName: attachment.fileName,
12241224
type: attachment.type,
12251225
size: attachment.size,
1226-
createdAt: newConvoEntryTimestamp,
1227-
inline: true
1226+
createdAt: newConvoEntryTimestamp
12281227
});
12291228

12301229
pendingAttachmentsToRemoveFromPending.push(

apps/storage/proxy/attachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const attachmentProxy = createHonoApp<Ctx>().get(
4444

4545
if (
4646
!attachmentQueryResponse ||
47-
attachmentQueryResponse.fileName !== filename ||
47+
decodeURIComponent(attachmentQueryResponse.fileName) !== filename ||
4848
attachmentQueryResponse.org.shortcode !== orgShortcode
4949
) {
5050
return c.json(

0 commit comments

Comments
 (0)