From 47a370c5e3eca47351ddf7343dd5378125044bac Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 3 Dec 2016 10:39:06 -0500 Subject: [PATCH] Revert adding baseurl to private image URL --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index 89ab7254b6..f45dd6391c 100644 --- a/include/text.php +++ b/include/text.php @@ -1187,7 +1187,7 @@ function redir_private_images($a, &$item) } if ((local_user() == $item['uid']) && ($item['private'] != 0) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN)) { - $img_url = $a->get_baseurl() . '/redir?f=1&quiet=1&url=' . urlencode($mtch[1]) . '&conurl=' . urlencode($item['author-link']); + $img_url = '/redir?f=1&quiet=1&url=' . urlencode($mtch[1]) . '&conurl=' . urlencode($item['author-link']); $item['body'] = str_replace($mtch[0], '[img]' . $img_url . '[/img]', $item['body']); } } -- 2.39.5