Allow using oembed_providers bucket configs per filter

Created on 27 January 2022, almost 3 years ago
Updated 21 January 2024, 11 months ago

Problem/Motivation

Currently the 2.x version this module will attempt to embed any url to any provider in the provider repository

Often you don't want your filter to embed every type of url that has a provider. You probably want to restrict you filter to only use certain providers.

Soembed should have a setting on the filter instance to select which providers to enable.

Listing all the possible providers as checkboxes would make a huge list of items and a pain to manage.

Proposed resolution

The oembed_providers module ( https://www.drupal.org/project/oembed_providers β†’ ) allows admins to create groups of enabled providers (buckets)

If oembed_providers is enabled, soembed should list these buckets on the filters settings form, and only the providers enabled in the selected buckets should be embedded with the filter.

I have made a patch that attempts to do this.

If the oembed_providers module is not installed or no buckets are enabled on the filter, it defaults to the original behavior of embedding any url.

I've tested this with oembed_providers 2.x-dev

✨ Feature request
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024