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
1 changed files with 5 additions and 0 deletions

View File

@ -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 {