aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-15 02:57:36 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-15 02:57:51 (JST)
commit5bda21faf4df44ba089ee745b72f0806115c322b (patch)
treeb936f0d0bc4b875c00ee413aac2e86df010f0d8a
parent6ca734da8fb246ad2272826331e0d56428b96fa1 (diff)
downloadcgit-5bda21faf4df44ba089ee745b72f0806115c322b.zip
cgit-5bda21faf4df44ba089ee745b72f0806115c322b.tar.gz
email-gravatar: do not scale icons up
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--filters/email-gravatar.lua2
-rwxr-xr-xfilters/email-gravatar.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/filters/email-gravatar.lua b/filters/email-gravatar.lua
index c80b63e..3aad258 100644
--- a/filters/email-gravatar.lua
+++ b/filters/email-gravatar.lua
@@ -15,7 +15,7 @@ function filter_open(email, page)
15end 15end
16 16
17function filter_close() 17function filter_close()
18 html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&amp;d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " .. buffer) 18 html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&amp;d=retro' width=13 height=13 alt='Gravatar' /> " .. buffer)
19 return 0 19 return 0
20end 20end
21 21
diff --git a/filters/email-gravatar.py b/filters/email-gravatar.py
index 97f21cf..88bc776 100755
--- a/filters/email-gravatar.py
+++ b/filters/email-gravatar.py
@@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
36md5 = hashlib.md5(email.encode()).hexdigest() 36md5 = hashlib.md5(email.encode()).hexdigest()
37text = sys.stdin.read().strip() 37text = sys.stdin.read().strip()
38 38
39print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&amp;d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " + text) 39print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&amp;d=retro' width=13 height=13 alt='Gravatar' /> " + text)