Don't display OEmbed error to anonymous visitors when resource stops being available

Created on 10 March 2021, over 3 years ago
Updated 20 September 2024, about 2 months ago

Problem/Motivation

When an oembed entity is fetched and there is an error fetching the resource a message is shown to the user saying "Could not retrieve the oEmbed resource", however, this happens on every visit, and this is shown also to anonymous users, and for them, it doesn't make sense.

Steps to reproduce

- Create an entity to be embedded with a valid URL
- Remove, hide or block the referenced entity (if it is a video mark it as private or delete it)
- Visit the page where the entity is supposed to be rendered.

Proposed resolution

Log the error instead of showing it in a message.

๐Ÿ› Bug report
Status

Needs review

Version

11.0 ๐Ÿ”ฅ

Component
Mediaย  โ†’

Last updated about 4 hours ago

Created by

๐Ÿ‡ช๐Ÿ‡จEcuador BetoAveiga Daule, Guayas

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Missing content requested by

๐Ÿ‡ฆ๐Ÿ‡บAustralia dpi
3 months ago
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024