From: Hypolite Petovan Date: Thu, 18 Jun 2020 15:23:57 +0000 (-0400) Subject: Remove share_header() function from mod/share X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b9117ceddce749422d00a8a47611d6fd8fdbd13a;p=friendica.git Remove share_header() function from mod/share --- diff --git a/mod/share.php b/mod/share.php index 90f2b52488..fe4b7bfe7f 100644 --- a/mod/share.php +++ b/mod/share.php @@ -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(["'", "[", "]"], ["'", "[", "]"], $author). - "' profile='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $profile). - "' avatar='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $avatar); - - if ($guid) { - $header .= "' guid='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $guid); - } - - if ($posted) { - $header .= "' posted='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $posted); - } - - $header .= "' link='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $link)."']"; - - return $header; -}