From b4f18e61ab4d43a17f36617247fe5e3d7037607b Mon Sep 17 00:00:00 2001 From: Benoit Alessandroni <benoit@happy-dev.fr> Date: Thu, 12 May 2022 15:43:02 +0200 Subject: [PATCH] prosody: adapt membership notifications subscriptions --- .../management/commands/create_subscriptions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/djangoldp_notification/management/commands/create_subscriptions.py b/djangoldp_notification/management/commands/create_subscriptions.py index f0858bd..18b30c4 100644 --- a/djangoldp_notification/management/commands/create_subscriptions.py +++ b/djangoldp_notification/management/commands/create_subscriptions.py @@ -11,12 +11,15 @@ class Command(BaseCommand): xmpp = getattr(settings, 'PROSODY_HTTP_URL') Subscription.objects.get_or_create(object=host+"/circles/", inbox=xmpp + "/conference." + jabber_host + "/happydev_muc_admin", field=None) - Subscription.objects.get_or_create(object=host+"/circle-members/", inbox=xmpp + "/conference." + jabber_host + "/happydev_muc_admin", field="circle") + # Subscription.objects.get_or_create(object=host+"/circle-members/", inbox=xmpp + "/conference." + jabber_host + "/happydev_muc_admin", field="circle") Subscription.objects.get_or_create(object=host+"/projects/", inbox=xmpp + "/conference." + jabber_host + "/happydev_muc_admin", field=None) - Subscription.objects.get_or_create(object=host+"/project-members/", inbox=xmpp + "/conference." + jabber_host + "/happydev_muc_admin", field="project") + # Subscription.objects.get_or_create(object=host+"/project-members/", inbox=xmpp + "/conference." + jabber_host + "/happydev_muc_admin", field="project") Subscription.objects.get_or_create(object=host+"/users/", inbox=xmpp + "/" + jabber_host + "/happydev_user_admin", field=None) Subscription.objects.get_or_create(object=host+"/profiles/", inbox=xmpp + "/" + jabber_host + "/happydev_user_admin", field="user") Subscription.objects.get_or_create(object=host+"/chatprofiles/", inbox=xmpp + "/" + jabber_host + "/happydev_user_admin", field="user") Subscription.objects.get_or_create(object=host+"/accounts/", inbox=xmpp + "/" + jabber_host + "/happydev_user_admin", field="user") + Subscription.objects.get_or_create(object=host+"/circle-members/", inbox=xmpp + "/conference." + jabber_host + "/startinblox_muc_members_admin") + Subscription.objects.get_or_create(object=host+"/project-members/", inbox=xmpp + "/conference." + jabber_host + "/startinblox_muc_members_admin") + self.stdout.write(self.style.SUCCESS("Successfully created subscriptions\nhost: "+host+"\nxmpp server: "+xmpp+"\njabber host: "+jabber_host)) -- GitLab