From: Mikael Nordfeldth Date: Tue, 22 Mar 2016 13:02:36 +0000 (+0100) Subject: If the attachment is a photo, don't replace representation in oEmbed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53c1750f0df75e7992339656a3f665b8ed29d61e;p=quix0rs-gnu-social.git If the attachment is a photo, don't replace representation in oEmbed --- 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 {