From: friendica Date: Tue, 4 Sep 2012 04:31:35 +0000 (-0700) Subject: attachments from non-friendica contacts shouldn't go through redir - it won't work X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cdf648c0b47f6be3f562833dbf92dfb0339bcf46;p=friendica.git attachments from non-friendica contacts shouldn't go through redir - it won't work --- diff --git a/include/text.php b/include/text.php index 3783d2accd..c1e01343a8 100644 --- a/include/text.php +++ b/include/text.php @@ -1005,7 +1005,7 @@ function prepare_body($item,$attach = false) { } $title = ((strlen(trim($mtch[4]))) ? escape_tags(trim($mtch[4])) : escape_tags($mtch[1])); $title .= ' ' . $mtch[2] . ' ' . t('bytes'); - if((local_user() == $item['uid']) && $item['contact-id'] != $a->contact['id']) + if((local_user() == $item['uid']) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN)) $the_url = $a->get_baseurl() . '/redir/' . $item['contact-id'] . '?f=1&url=' . $mtch[1]; else $the_url = $mtch[1];