1
1
Fork 0

In the API you now can update not only the body but also the title. In html2plain the function for valid urls was improved.

This commit is contained in:
Michael 2012-11-04 23:18:52 +01:00
parent 84fc866976
commit 6afa5d1c48
2 changed files with 5 additions and 0 deletions

View file

@ -559,6 +559,8 @@
$_REQUEST['body'] = requestdata('status'); $_REQUEST['body'] = requestdata('status');
//$_REQUEST['body'] = urldecode(requestdata('status')); //$_REQUEST['body'] = urldecode(requestdata('status'));
$_REQUEST['title'] = requestdata('title');
$parent = requestdata('in_reply_to_status_id'); $parent = requestdata('in_reply_to_status_id');
if(ctype_digit($parent)) if(ctype_digit($parent))
$_REQUEST['parent'] = $parent; $_REQUEST['parent'] = $parent;

View file

@ -92,6 +92,9 @@ function collecturls($message) {
if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/posts") !== false)) if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/posts") !== false))
$ignore = false; $ignore = false;
if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/photos") !== false))
$ignore = false;
if (!$ignore) if (!$ignore)
$urls[$treffer[1]] = $treffer[1]; $urls[$treffer[1]] = $treffer[1];
} }