Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 9274:1712e366b081
mod_pubsub: Exclude value of FORM_TYPE from stored data
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Sep 2018 02:25:39 +0200 |
parent | 9247:26854d7a4947 |
child | 9817:7aad9eb7f050 |
comparison
equal
deleted
inserted
replaced
9273:f2258e9750cf | 9274:1712e366b081 |
---|---|
54 -- (not simply strings/numbers) then the publish-options code will | 54 -- (not simply strings/numbers) then the publish-options code will |
55 -- need to be revisited | 55 -- need to be revisited |
56 local node_config_form = dataform { | 56 local node_config_form = dataform { |
57 { | 57 { |
58 type = "hidden"; | 58 type = "hidden"; |
59 name = "FORM_TYPE"; | 59 var = "FORM_TYPE"; |
60 value = "http://jabber.org/protocol/pubsub#node_config"; | 60 value = "http://jabber.org/protocol/pubsub#node_config"; |
61 }; | 61 }; |
62 { | 62 { |
63 type = "text-single"; | 63 type = "text-single"; |
64 name = "title"; | 64 name = "title"; |
155 }; | 155 }; |
156 | 156 |
157 local subscribe_options_form = dataform { | 157 local subscribe_options_form = dataform { |
158 { | 158 { |
159 type = "hidden"; | 159 type = "hidden"; |
160 name = "FORM_TYPE"; | 160 var = "FORM_TYPE"; |
161 value = "http://jabber.org/protocol/pubsub#subscribe_options"; | 161 value = "http://jabber.org/protocol/pubsub#subscribe_options"; |
162 }; | 162 }; |
163 { | 163 { |
164 type = "boolean"; | 164 type = "boolean"; |
165 name = "pubsub#include_body"; | 165 name = "pubsub#include_body"; |
168 }; | 168 }; |
169 | 169 |
170 local node_metadata_form = dataform { | 170 local node_metadata_form = dataform { |
171 { | 171 { |
172 type = "hidden"; | 172 type = "hidden"; |
173 name = "FORM_TYPE"; | 173 var = "FORM_TYPE"; |
174 value = "http://jabber.org/protocol/pubsub#meta-data"; | 174 value = "http://jabber.org/protocol/pubsub#meta-data"; |
175 }; | 175 }; |
176 { | 176 { |
177 type = "text-single"; | 177 type = "text-single"; |
178 name = "pubsub#title"; | 178 name = "pubsub#title"; |