mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
Revert adding baseurl to private image URL
This commit is contained in:
parent
0f2c27e041
commit
47a370c5e3
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue