If the attachment is a photo, don't replace representation in oEmbed

This commit is contained in:
Mikael Nordfeldth 2016-03-22 14:02:36 +01:00
parent f3f619cc41
commit 53c1750f0d

View File

@ -238,6 +238,11 @@ class OembedPlugin extends Plugin
return true; 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('article', ['class'=>'oembed-item']);
$out->elementStart('header'); $out->elementStart('header');
try { try {