mirror of
https://git.zx2c4.com/cgit
synced 2024-11-21 16:08:41 +00:00
email-gravatar: do not scale icons up
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6ca734da8f
commit
5bda21faf4
@ -15,7 +15,7 @@ function filter_open(email, page)
|
||||
end
|
||||
|
||||
function filter_close()
|
||||
html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " .. buffer)
|
||||
html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' width=13 height=13 alt='Gravatar' /> " .. buffer)
|
||||
return 0
|
||||
end
|
||||
|
||||
|
@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
|
||||
md5 = hashlib.md5(email.encode()).hexdigest()
|
||||
text = sys.stdin.read().strip()
|
||||
|
||||
print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " + text)
|
||||
print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' width=13 height=13 alt='Gravatar' /> " + text)
|
||||
|
Loading…
Reference in New Issue
Block a user