Commit 53c1750f authored by mmn's avatar mmn

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

parent f3f619cc
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment