From b9117ceddce749422d00a8a47611d6fd8fdbd13a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 18 Jun 2020 11:23:57 -0400 Subject: [PATCH] Remove share_header() function from mod/share --- mod/share.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/mod/share.php b/mod/share.php index 90f2b5248..fe4b7bfe7 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; -}