Mercurial > prosody-hg
comparison plugins/mod_vcard.lua @ 14192:e58de351880f
Merge 13.0->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 26 May 2026 11:47:33 +0100 |
| parents | 12c01089bdb7 |
| children |
comparison
equal
deleted
inserted
replaced
| 14188:dbbafef0748f | 14192:e58de351880f |
|---|---|
| 66 local photo = vcard:get_child("PHOTO"); | 66 local photo = vcard:get_child("PHOTO"); |
| 67 if not photo then return end | 67 if not photo then return end |
| 68 | 68 |
| 69 local photo_b64 = photo:get_child_text("BINVAL"); | 69 local photo_b64 = photo:get_child_text("BINVAL"); |
| 70 local photo_raw = photo_b64 and base64.decode(photo_b64); | 70 local photo_raw = photo_b64 and base64.decode(photo_b64); |
| 71 if not photo_raw then return end | |
| 71 return (sha1(photo_raw, true)); | 72 return (sha1(photo_raw, true)); |
| 72 end | 73 end |
