Diff options
Diffstat (limited to 'custom/extensions/email-gravatar.lua')
| -rw-r--r-- | custom/extensions/email-gravatar.lua | 6 |
1 file changed, 5 insertions, 1 deletion
diff --git a/custom/extensions/email-gravatar.lua b/custom/extensions/email-gravatar.lua index 467deff..c89da79 100644 --- a/custom/extensions/email-gravatar.lua +++ b/custom/extensions/email-gravatar.lua @@ -13,7 +13,8 @@ -- openssl.digest, from <https://github.com/wahern/luaossl>. The reliable -- cross-platform install is LuaRocks, matched to the Lua version cgit is built -- against, and it needs the OpenSSL development headers present. Without it --- the filter draws no icons and leaves the names as they are. +-- the filter draws no icons, leaving the names as they are, and says so in the +-- error log. -- -- # Debian and Ubuntu -- sudo apt install luarocks libssl-dev @@ -33,6 +34,9 @@ -- SHA-256, the form Gravatar documents. local has_digest, digest = pcall(require, "openssl.digest") +if not has_digest then + io.stderr:write("[cgit] Unable to load openssl.digest, so no avatar icons are drawn\n") +end -- The size is in pixels and serves both as the image asked of the service and |
