Browse Source

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

pull/536/head
Michael 9 years ago
parent
commit
6afa5d1c48
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      include/api.php
  2. +3
    -0
      include/html2plain.php

+ 2
- 0
include/api.php View File

@ -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;


+ 3
- 0
include/html2plain.php View File

@ -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];
}


Loading…
Cancel
Save