X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=3ee23ff1645056fb7a34d0350ff9c266e19fc737;hb=e0ecbd0b95454ed2ff4b0082b41d388d2938e3ae;hp=2ca0e0e517052a6c838ed7da42008b4c5a31b281;hpb=a6eae9adec28454b1829fe15dc79e1cb8278d5ac;p=friendica.git diff --git a/include/text.php b/include/text.php index 2ca0e0e517..3ee23ff164 100644 --- a/include/text.php +++ b/include/text.php @@ -1137,7 +1137,7 @@ function redir_private_images($a, &$item) continue; } - if ((local_user() == $item['uid']) && ($item['private'] != 0) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN)) { + if ((local_user() == $item['uid']) && ($item['private'] == 1) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN)) { $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']); }