]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlistitem.php
Merge branch 'master' into mmn_fixes
[quix0rs-gnu-social.git] / lib / attachmentlistitem.php
index e6163ecc9265372d627c6caa446be96983032c32..6ee3c7087b43d5d573489974693ed89c8bfcf9fb 100644 (file)
@@ -204,11 +204,7 @@ class AttachmentListItem extends Widget
      */
     protected function scrubHtmlFile(File $attachment)
     {
-        $path = File::path($attachment->filename);
-        if (!file_exists($path) || !is_readable($path)) {
-            common_log(LOG_ERR, "Missing local HTML attachment $path");
-            return false;
-        }
+        $path = $attachment->getPath();
         $raw = file_get_contents($path);
 
         // Normalize...