]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mediafile.php
getID() will complain loudly if something is wrong
[quix0rs-gnu-social.git] / lib / mediafile.php
index bcc8662f56f6e632895806794b6fcdacc7f387cf..2b8f324df2f88d5e8671c95f2e6166d07b57a380 100644 (file)
@@ -61,7 +61,7 @@ class MediaFile
 
     public function attachToNotice(Notice $notice)
     {
-        File_to_post::processNew($this->fileRecord->id, $notice->id);
+        File_to_post::processNew($this->fileRecord, $notice);
     }
 
     public function getPath()
@@ -332,6 +332,7 @@ class MediaFile
         $unclearTypes = array('application/octet-stream',
                               'application/vnd.ms-office',
                               'application/zip',
+                              'text/html',  // Ironically, Wikimedia Commons' SVG_logo.svg is identified as text/html
                               // TODO: for XML we could do better content-based sniffing too
                               'text/xml');