]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
HTML "File"/attachments should probably not be considered enclosures.
authorCraig Andrews <candrews@integralblue.com>
Tue, 14 Jul 2009 17:38:26 +0000 (13:38 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 14 Jul 2009 17:38:26 +0000 (13:38 -0400)
classes/File.php

index 289c6e4418d24084007ddaf6beb0ca05a181ae95..56d9f982783a8e6815fae7e8b07ec89724223e21 100644 (file)
@@ -198,7 +198,7 @@ class File extends Memcached_DataObject
         if(isset($this->filename)){
             return true;
         }
-        $notEnclosureMimeTypes = array('text/html');
+        $notEnclosureMimeTypes = array('text/html','application/xhtml+xml');
         $mimetype = strtolower($this->mimetype);
         $semicolon = strpos($mimetype,';');
         if($semicolon){