Mercurial > prosody-modules
comparison mod_http_avatar/mod_http_avatar.lua @ 3083:46d71b38bc16
mod_http_avatar: Remove unused variable. [luacheck]
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 01 Jun 2018 22:11:42 +0200 |
parents | 1cff081abbed |
children | 5b4e7db5943c |
comparison
equal
deleted
inserted
replaced
3082:1cff081abbed | 3083:46d71b38bc16 |
---|---|
14 <rect width='150' height='150' fill='#888' stroke-width='1' stroke='#000'/> | 14 <rect width='150' height='150' fill='#888' stroke-width='1' stroke='#000'/> |
15 <text x='75' y='100' text-anchor='middle' font-size='100'>?</text> | 15 <text x='75' y='100' text-anchor='middle' font-size='100'>?</text> |
16 </svg>]]; | 16 </svg>]]; |
17 | 17 |
18 local function get_avatar(event, path) | 18 local function get_avatar(event, path) |
19 local request, response = event.request, event.response; | 19 local response = event.response; |
20 local photo_type, binval; | 20 local photo_type, binval; |
21 local vcard, err = vcard_storage:get(path); | 21 local vcard, err = vcard_storage:get(path); |
22 if vcard then | 22 if vcard then |
23 vcard = st.deserialize(vcard); | 23 vcard = st.deserialize(vcard); |
24 local photo = vcard:get_child("PHOTO", "vcard-temp"); | 24 local photo = vcard:get_child("PHOTO", "vcard-temp"); |