And again removed notices (#700)
* And again removed notices * Sometimes there doesn't seem to be a content, then we don't continue
This commit is contained in:
parent
c8371bc521
commit
10086f940d
|
@ -361,6 +361,7 @@ function pumpio_settings_post(App $a, array &$b)
|
|||
$host = trim($host);
|
||||
$host = str_replace(["https://", "http://"], ["", ""], $host);
|
||||
|
||||
if (isset($_POST['pumpio'])) {
|
||||
PConfig::set(local_user(), 'pumpio', 'post' , intval($_POST['pumpio']));
|
||||
PConfig::set(local_user(), 'pumpio', 'import' , $_POST['pumpio_import']);
|
||||
PConfig::set(local_user(), 'pumpio', 'host' , $host);
|
||||
|
@ -372,7 +373,7 @@ function pumpio_settings_post(App $a, array &$b)
|
|||
if (!$_POST['pumpio_mirror']) {
|
||||
PConfig::delete(local_user(), 'pumpio', 'lastdate');
|
||||
}
|
||||
|
||||
}
|
||||
//header("Location: ".$a->get_baseurl()."/pumpio/connect");
|
||||
}
|
||||
}
|
||||
|
@ -1219,6 +1220,11 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
|
|||
$postarray['parent-uri'] = $post->object->inReplyTo->id;
|
||||
}
|
||||
|
||||
// When there is no content there is no need to continue
|
||||
if (empty($post->object->content)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!empty($post->object->pump_io->proxyURL)) {
|
||||
$postarray['extid'] = $post->object->pump_io->proxyURL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue