hackclub / hackclub/hcb

[Receipts] Inline attachments don't get rendered properly

Open
#12,596 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
870
Forks
138
Avg merge
1d 18h
Merged PRs (30d)
205

Description

### Describe your goals

We should pass attachments into WickedPdf somehow. One option would be to find and replace `cid:#{attachment.content_id}` with a base64 representation of the image.

### Describe the bug

When you paste an image into an email and send it to `receipts@hcb.gg`, the inline image doesn't get rendered. This is because we don't pass that information into `WickedPdf`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.