From efd0f5d4b2cf7fe2ad5c890aeb2f156875036d6f Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Thu, 17 Feb 2022 12:14:50 +0100 Subject: [PATCH] VC/Zoom: Do not inject zoom links in API responses --- vc_zoom/README.md | 6 ++++++ vc_zoom/indico_vc_zoom/plugin.py | 2 +- vc_zoom/setup.cfg | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/vc_zoom/README.md b/vc_zoom/README.md index f20f7e0..f7707e0 100644 --- a/vc_zoom/README.md +++ b/vc_zoom/README.md @@ -11,6 +11,12 @@ ## Changelog +### 3.1.2 + +- Do not include Zoom link in event descriptions returned by the HTTP API (iCalendar files for + events and categories are no longer generated through the API and other consumers of the API + typically do not expect Zoom links in there) + ### 3.1.1 - Fix processing webhooks for Zoom meetings updated/deleted outside Indico diff --git a/vc_zoom/indico_vc_zoom/plugin.py b/vc_zoom/indico_vc_zoom/plugin.py index 821e02b..46aecd9 100644 --- a/vc_zoom/indico_vc_zoom/plugin.py +++ b/vc_zoom/indico_vc_zoom/plugin.py @@ -153,7 +153,7 @@ class ZoomPlugin(VCPluginMixin, IndicoPlugin): super().init() self.connect(signals.plugin.cli, self._extend_indico_cli) self.connect(signals.event.times_changed, self._times_changed) - self.connect(signals.event.metadata_postprocess, self._event_metadata_postprocess) + self.connect(signals.event.metadata_postprocess, self._event_metadata_postprocess, sender='ical-export') self.template_hook('event-vc-room-list-item-labels', self._render_vc_room_labels) self.inject_bundle('main.js', WPSimpleEventDisplay) self.inject_bundle('main.js', WPVCEventPage) diff --git a/vc_zoom/setup.cfg b/vc_zoom/setup.cfg index 1f71060..cb3720f 100644 --- a/vc_zoom/setup.cfg +++ b/vc_zoom/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = indico-plugin-vc-zoom -version = 3.1.1 +version = 3.1.2 description = Zoom video-conferencing plugin for Indico long_description = file: README.md long_description_content_type = text/markdown; charset=UTF-8; variant=GFM