]> git.mxchange.org Git - friendica.git/commitdiff
photo fixes
authorFriendika <info@friendika.com>
Wed, 24 Aug 2011 01:50:18 +0000 (18:50 -0700)
committerFriendika <info@friendika.com>
Wed, 24 Aug 2011 01:50:18 +0000 (18:50 -0700)
include/bb2diaspora.php
include/diaspora.php

index 3baba8a9ed87658564e83b0243b62a31c47b1496..5ce34d6660a955237b18ea0f925c66372f22c514 100644 (file)
@@ -39,7 +39,7 @@ function bb2diaspora($Text,$preserve_nl = false) {
        $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.*?)\[/url\])", '[$2]($1)', $Text);
 
 //     $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('Image/photo: ') . '$1', $Text);
-       $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('image/photo'), $Text);
+//     $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('image/photo'), $Text);
 
        // Perform MAIL Search
        $Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '[$1](mailto:$1)', $Text);
index a1edd08a684d5043f3704467afa2629200eaf3d6..00bf1f910532ee8c06166154bfeca38b00bcefd7 100644 (file)
@@ -907,12 +907,12 @@ function diaspora_send_status($item,$owner,$contact) {
                foreach($matches as $mtch) {
                        $detail = array();
                        $detail['str'] = $mtch[0];
-                       $detail['path'] = dirname($mtch[1]);
+                       $detail['path'] = dirname($mtch[1]) . '/';
                        $detail['file'] = basename($mtch[1]);
                        $detail['guid'] = $item['guid'];
                        $detail['handle'] = $myaddr;
                        $images[] = $detail;
-                       $body = str_replace($detail['str'],'',$body);
+                       $body = str_replace($detail['str'],t('link to photo'),$body);
                }
        }       
 
@@ -931,7 +931,7 @@ function diaspora_send_status($item,$owner,$contact) {
                '$created' => $created
        ));
 
-       logger('diaspora_send_status: base message: ' . $msg, LOGGER_DATA);
+       logger('diaspora_send_status: ' . $owner['username'] . ' -> ' . $contact['name'] . ' base message: ' . $msg, LOGGER_DATA);
 
        $slap = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$owner,$contact,$owner['uprvkey'],$contact['pubkey'])));