Skip to content

Commit 92255fb

Browse files
committed
Switch to responsive images to avoid large ones.
1 parent baaa525 commit 92255fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scraper/message.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (m *Message) HTML() interface{} {
4141
switch m.Onebox {
4242
case OneboxImage:
4343
return pongo2.AsSafeValue(
44-
fmt.Sprintf("<img src=\"%s\">", m.Body),
44+
fmt.Sprintf("<img src=\"%s\" class=\"img-responsive\">", m.Body),
4545
)
4646
default:
4747
return fmt.Sprintf("“%s”", util.Truncate(m.Body, 138))

0 commit comments

Comments
 (0)