aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index e33fe836..5e09dab3 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -383,6 +383,9 @@ local function simple_itemstore(archive, config, user, node, expose_publisher)
end
return data;
end
+ function get_set:clear()
+ return archive:delete(user, { with = node });
+ end
return setmetatable(get_set, archive);
end
_M.simple_itemstore = simple_itemstore;