Skip to content

Commit

Permalink
fix: inline images breaking due to special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Aug 28, 2024
1 parent 3bb3686 commit 1614b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/platform/trpc/routers/convoRouter/convoRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,7 @@ export const convoRouter = router({
fileName: attachment.fileName,
type: attachment.type,
size: attachment.size,
createdAt: newConvoEntryTimestamp,
inline: true
createdAt: newConvoEntryTimestamp
});

pendingAttachmentsToRemoveFromPending.push(
Expand Down
2 changes: 1 addition & 1 deletion apps/storage/proxy/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const attachmentProxy = createHonoApp<Ctx>().get(

if (
!attachmentQueryResponse ||
attachmentQueryResponse.fileName !== filename ||
decodeURIComponent(attachmentQueryResponse.fileName) !== filename ||
attachmentQueryResponse.org.shortcode !== orgShortcode
) {
return c.json(
Expand Down

0 comments on commit 1614b95

Please sign in to comment.