Uploaded image for project: 'ejabberd development'
  1. ejabberd development
  2. EJAB-913

Pubsub subscriptions remain after anonymous user removed

    Details

      Description

      Anonymous users are allowed to subscribe to pubsub nodes but their subscriptions remain when the users are gone, cluttering up the database and affecting later users having the same JID. Adding the following line to mod_pubsub:init resolves the issue.

      ejabberd_hooks:add(anonymous_purge_hook, ServerHost, ?MODULE, remove_user, 50),
      

        Activity

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development