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:
parent
2976c2d921
commit
bcc04d93e1
3 changed files with 31 additions and 7 deletions
|
@ -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")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue