1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Enforce pubsub node removal, revert previous commit (#1320)

This reverts commit 2976c2d921.
and enforce node purge/removal instead
This commit is contained in:
Christophe Romain 2016-12-09 12:01:42 +01:00
parent 2976c2d921
commit bcc04d93e1
3 changed files with 31 additions and 7 deletions

View file

@ -641,9 +641,6 @@ set_state(Nidx, State) ->
del_state(Nidx, JID) ->
J = encode_jid(JID),
catch ejabberd_sql:sql_query_t(
?SQL("delete from pubsub_item where publisher=%(J)s"
" and nodeid=%(Nidx)d")),
catch ejabberd_sql:sql_query_t(
?SQL("delete from pubsub_state"
" where jid=%(J)s and nodeid=%(Nidx)d")),