]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If the attachment is a photo, don't replace representation in oEmbed
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 22 Mar 2016 13:02:36 +0000 (14:02 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 22 Mar 2016 13:02:36 +0000 (14:02 +0100)
plugins/Oembed/OembedPlugin.php

index 4497728c4cefa5079401dc134bd9e11f6a4dbaec..56ce3cf0988a9ce548b0f6efbdc08bd09ab4eb9f 100644 (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  {