mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
fix empty pubsub payload check on odbc version
This commit is contained in:
parent
c3a88c713b
commit
91ab7e029b
@ -1841,7 +1841,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload) ->
|
||||
DeliverPayloads = get_option(Options, deliver_payloads),
|
||||
PersistItems = get_option(Options, persist_items),
|
||||
PayloadCount = payload_xmlelements(Payload),
|
||||
PayloadSize = size(term_to_binary(Payload)),
|
||||
PayloadSize = size(term_to_binary(Payload))-2, % size(term_to_binary([])) == 2
|
||||
PayloadMaxSize = get_option(Options, max_payload_size),
|
||||
% pubsub#deliver_payloads true
|
||||
% pubsub#persist_items true -> 1 item; false -> 0 item
|
||||
|
Loading…
Reference in New Issue
Block a user