Browse Source

Stringify boolean values from jwt user context

master
Andrei Bora 5 years ago
parent
commit
50997ae6ac
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      resources/prosody-plugins/util.lib.lua

+ 1
- 0
resources/prosody-plugins/util.lib.lua View File

@@ -183,6 +183,7 @@ function update_presence_identity(
183 183
 
184 184
     stanza:tag("identity"):tag("user");
185 185
     for k, v in pairs(user) do
186
+        v = tostring(v)
186 187
         stanza:tag(k):text(v):up();
187 188
     end
188 189
     stanza:up();

Loading…
Cancel
Save