]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add doc comments on saveHTMLFile; drop the extra <div> wrapping the contents to make...
authorBrion Vibber <brion@pobox.com>
Wed, 17 Mar 2010 22:49:10 +0000 (15:49 -0700)
committerSarven Capadisli <csarven@status.net>
Thu, 25 Mar 2010 22:11:06 +0000 (23:11 +0100)
plugins/OStatus/classes/Ostatus_profile.php

index e5210cda1357e047f7e266311e1282c9a48f6d5a..0abc1ee19a8e9616a96d4db9d6b4d50761a9f856 100644 (file)
@@ -1676,10 +1676,18 @@ class Ostatus_profile extends Memcached_DataObject
         throw new Exception("Couldn't find a valid profile for '$addr'");
     }
 
+    /**
+     * Store the full-length scrubbed HTML of a remote notice to an attachment
+     * file on our server. We'll link to this at the end of the cropped version.
+     *
+     * @param string $title plaintext for HTML page's title
+     * @param string $rendered HTML fragment for HTML page's body
+     * @return File
+     */
     function saveHTMLFile($title, $rendered)
     {
         $final = sprintf("<!DOCTYPE html>\n<html><head><title>%s</title></head>".
-                         '<body><div>%s</div></body></html>',
+                         '<body>%s</body></html>',
                          htmlspecialchars($title),
                          $rendered);