From: Michael Date: Sun, 4 Nov 2012 22:18:52 +0000 (+0100) Subject: In the API you now can update not only the body but also the title. In html2plain... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6afa5d1c4821ce16d86430df0fca0cc910cb7ac7;p=friendica.git In the API you now can update not only the body but also the title. In html2plain the function for valid urls was improved. --- diff --git a/include/api.php b/include/api.php index 456d984de1..fb03b30a0a 100644 --- a/include/api.php +++ b/include/api.php @@ -559,6 +559,8 @@ $_REQUEST['body'] = requestdata('status'); //$_REQUEST['body'] = urldecode(requestdata('status')); + $_REQUEST['title'] = requestdata('title'); + $parent = requestdata('in_reply_to_status_id'); if(ctype_digit($parent)) $_REQUEST['parent'] = $parent; diff --git a/include/html2plain.php b/include/html2plain.php index 839dd70a74..4afac41d83 100644 --- a/include/html2plain.php +++ b/include/html2plain.php @@ -92,6 +92,9 @@ function collecturls($message) { if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/posts") !== false)) $ignore = false; + if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/photos") !== false)) + $ignore = false; + if (!$ignore) $urls[$treffer[1]] = $treffer[1]; }