From 53c1750f0df75e7992339656a3f665b8ed29d61e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 22 Mar 2016 14:02:36 +0100 Subject: [PATCH] If the attachment is a photo, don't replace representation in oEmbed --- plugins/Oembed/OembedPlugin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 4497728c4c..56ce3cf098 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -238,6 +238,11 @@ class OembedPlugin extends Plugin return true; } + // Show thumbnail as usual if it's a photo. + if ($oembed->type === 'photo') { + return true; + } + $out->elementStart('article', ['class'=>'oembed-item']); $out->elementStart('header'); try { -- 2.39.5