forked from GNUsocial/gnu-social
If the attachment is a photo, don't replace representation in oEmbed
This commit is contained in:
parent
f3f619cc41
commit
53c1750f0d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user