API: Only repeat items if there is a content
This commit is contained in:
parent
c707cba4c8
commit
5de91c2a7c
|
@ -915,6 +915,7 @@
|
|||
intval($id)
|
||||
);
|
||||
|
||||
if ($r[0]['body'] != "") {
|
||||
$_REQUEST['body'] = html_entity_decode("♲ ", ENT_QUOTES, 'UTF-8')."[url=".$r[0]['reply_url']."]".$r[0]['reply_author']."[/url] \n".$r[0]['body'];
|
||||
$_REQUEST['profile_uid'] = local_user();
|
||||
$_REQUEST['type'] = 'wall';
|
||||
|
@ -922,6 +923,7 @@
|
|||
|
||||
require_once('mod/item.php');
|
||||
item_post($a);
|
||||
}
|
||||
|
||||
if ($type == 'xml')
|
||||
$ok = "true";
|
||||
|
|
Loading…
Reference in a new issue