Software /
code /
prosody
Comparison
plugins/mod_vcard_legacy.lua @ 9811:ce6eb482eb50 0.11
mod_vcard_legacy: Add some missing semicolons
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 25 Jan 2019 23:21:13 +0100 |
parent | 9810:2d8e2de36654 |
child | 9812:330a937e085e |
comparison
equal
deleted
inserted
replaced
9810:2d8e2de36654 | 9811:ce6eb482eb50 |
---|---|
1 local st = require "util.stanza" | 1 local st = require "util.stanza"; |
2 local jid_split = require "util.jid".split; | 2 local jid_split = require "util.jid".split; |
3 | 3 |
4 local mod_pep = module:depends("pep"); | 4 local mod_pep = module:depends("pep"); |
5 | 5 |
6 local sha1 = require "util.hashes".sha1; | 6 local sha1 = require "util.hashes".sha1; |
257 avatar_defaults[k] = v; | 257 avatar_defaults[k] = v; |
258 end | 258 end |
259 avatar_defaults.max_items = #avatars; | 259 avatar_defaults.max_items = #avatars; |
260 end | 260 end |
261 for _, avatar in ipairs(avatars) do | 261 for _, avatar in ipairs(avatars) do |
262 local ok, err = pep_service:publish("urn:xmpp:avatar:data", actor, avatar.hash, avatar.data, avatar_defaults) | 262 local ok, err = pep_service:publish("urn:xmpp:avatar:data", actor, avatar.hash, avatar.data, avatar_defaults); |
263 if ok then | 263 if ok then |
264 ok, err = pep_service:publish("urn:xmpp:avatar:metadata", actor, avatar.hash, avatar.meta, avatar_defaults); | 264 ok, err = pep_service:publish("urn:xmpp:avatar:metadata", actor, avatar.hash, avatar.meta, avatar_defaults); |
265 end | 265 end |
266 if not ok then | 266 if not ok then |
267 return ok, err; | 267 return ok, err; |