Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293850

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 293850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>