Problem/Motivation

This is successor of 2930457
We need to update the patch to apply it on url_embed version 2.x

Steps to reproduce

Install clean version of Open Social
- enable social_embed module
- Create a post by visiting post/add/post and insert content: "Broken link example: http://example/idontexist and working Youtube embed example: https://youtu.be/ojafuCcUZzU"
- Go to homepage to confirm that post is correctly displayed
Expected result

Proposed resolution

Update patch so it can be applied on url_embed version 2.x.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Comments

zanvidmar created an issue. See original summary.

zanvidmar’s picture

This patch is combination of two patches (same like the previous version of patch for url_embed 1.x)

Patch 1
Add a caching layer for oembed data
https://www.drupal.org/files/issues/2020-10-13/url_embed-n2867668-25.patch

Patch 2
Non-embeddable links disappear in comments and post (where the patch is posted)
Improve how the module deals with non-embeddable URLs (issue that is referencing)
https://www.drupal.org/files/issues/2020-08-26/urlembed-non-embeddable-u...

We merge patch 1 and patch 2 and update the code so we can apply it on url_embed 2.x (2.0.0-alpha1)

zanvidmar’s picture

Title: Non-embeddable links disappear in comments and post (patch for url_embed 2.x) » Non-embeddable links disappear in comments and post (updated patch for url_embed 2.x)
zanvidmar’s picture

zanvidmar’s picture

Status: Active » Needs review

Related PR: https://github.com/goalgorilla/open_social/pull/3519 with this patch included.

zanvidmar’s picture

Status: Needs review » Reviewed & tested by the community
robertragas’s picture

Added a new version for this patch for when combined with the ckeditor5 for url-embed.

robertragas’s picture

Version: 11.10.x-dev » 11.11.x-dev
Status: Reviewed & tested by the community » Fixed

Landed in 11.11.0 (but not with the patch for ckeditor5, that story is still in progress, https://www.drupal.org/project/social/issues/3391286)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Anonymous’s picture