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

        Hide
        cromain@process-one.net Christophe Romain (Inactive) added a comment -

        fix commited
        thanks !

        Show
        cromain@process-one.net Christophe Romain (Inactive) added a comment - fix commited thanks !
        Hide
        cromain@process-one.net Christophe Romain (Inactive) added a comment -

        i'm adding it right now, also include ejabberd_hooks:delete in terminate.

        Show
        cromain@process-one.net Christophe Romain (Inactive) added a comment - i'm adding it right now, also include ejabberd_hooks:delete in terminate.
        Hide
        cromain@process-one.net Christophe Romain (Inactive) added a comment -

        thanks !
        this is planned for injection in 2.1

        Show
        cromain@process-one.net Christophe Romain (Inactive) added a comment - thanks ! this is planned for injection in 2.1

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development