]> git.mxchange.org Git - friendica.git/commitdiff
Remove share_header() function from mod/share
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jun 2020 15:23:57 +0000 (11:23 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jun 2020 15:23:57 +0000 (11:23 -0400)
mod/share.php

index 90f2b5248820b62e342a80c4703847f8e367d3c3..fe4b7bfe7fc9ce342fc41ad768d3f592a7eeae6d 100644 (file)
@@ -56,22 +56,3 @@ function share_init(App $a) {
        echo $o;
        exit();
 }
-
-/// @TODO Rewrite to handle over whole record array
-function share_header($author, $profile, $avatar, $guid, $posted, $link) {
-       $header = "[share author='" . str_replace(["'", "[", "]"], ["&#x27;", "&#x5B;", "&#x5D;"], $author).
-               "' profile='" . str_replace(["'", "[", "]"], ["&#x27;", "&#x5B;", "&#x5D;"], $profile).
-               "' avatar='" . str_replace(["'", "[", "]"], ["&#x27;", "&#x5B;", "&#x5D;"], $avatar);
-
-       if ($guid) {
-               $header .= "' guid='" . str_replace(["'", "[", "]"], ["&#x27;", "&#x5B;", "&#x5D;"], $guid);
-       }
-
-       if ($posted) {
-               $header .= "' posted='" . str_replace(["'", "[", "]"], ["&#x27;", "&#x5B;", "&#x5D;"], $posted);
-       }
-
-       $header .= "' link='" . str_replace(["'", "[", "]"], ["&#x27;", "&#x5B;", "&#x5D;"], $link)."']";
-
-       return $header;
-}