From 6afa5d1c4821ce16d86430df0fca0cc910cb7ac7 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 4 Nov 2012 23:18:52 +0100 Subject: [PATCH] In the API you now can update not only the body but also the title. In html2plain the function for valid urls was improved. --- include/api.php | 2 ++ include/html2plain.php | 3 +++ 2 files changed, 5 insertions(+) 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]; }