Skip to content

fix: prevent data uri images from showing in notifications - #1975

Merged
aarushtools merged 1 commit into
tjcsl:devfrom
aarushtools:imageck-fix
Dec 1, 2026
Merged

aarushtools merged 1 commit into
tjcsl:devfrom
aarushtools:imageck-fix

Conversation

@aarushtools

Copy link
Copy Markdown
Member

Proposed changes

@aarushtools
aarushtools marked this pull request as ready for review December 1, 2026 01:23
@aarushtools
aarushtools requested a review from a team as a code owner December 1, 2026 01:23
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 79.803% (-0.02%) from 79.825% — aarushtools:imageck-fix into tjcsl:dev

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · This appears safe to merge, with a non-blocking regression in labeled links in plain-text emails.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach announcement emails across several recipient groups.

This appears safe to merge, with a non-blocking regression in labeled links in plain-text emails.

Reviews (1) · Last reviewed commit: "fix: prevent data uri images from showin..." · Reviewed by Greptile

@@ -1,5 +1,5 @@
{% autoescape off %}
{{ announcement.content }}
{{ announcement.content|striptags }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Plain-text emails lose link destinations

The new striptags calls remove link URLs from plain-text emails. For example, <a href="https://example.org/signup">Register here</a> becomes only “Register here.” Recipients reading plain text must open Intranet to find the signup link. This affects all four changed text templates. Use an HTML-to-text conversion that keeps link destinations while dropping image tags.

Knowledge Base Used: Announcements, events, and notifications

Fix in Codex Fix in Claude Code

@aarushtools
aarushtools merged commit 699c654 into tjcsl:dev Dec 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants