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

Created on 10 March 2021, about 4 years ago
Updated 3 March 2023, about 2 years 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 work

Version

10.1 ✨

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
8 months ago
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024