From 3e9a26af773f5025e1540f9be5da952c448f1edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 21 Feb 2021 14:54:30 +0100 Subject: Strip `srcset` attribute --- internal/feed/mail.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal') diff --git a/internal/feed/mail.go b/internal/feed/mail.go index 3010bfb..b201d61 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -328,6 +328,11 @@ func (item *item) buildBody() { cid := "cid:" + cidNr(idx) selection.SetAttr(attr, cid) } + + // srcset overrides src and would reload all the images + // we do not want to include all images in the srcset either, so just strip it + selection.RemoveAttr("srcset") + doneAnything = true }) -- cgit v1.2.3