Sometimes there doesn't seem to be a content, then we don't continue

This commit is contained in:
Michael 2018-08-11 18:05:06 +00:00
parent 86077da8e5
commit 3a568a3647

View file

@ -1219,6 +1219,11 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
$postarray['parent-uri'] = $post->object->inReplyTo->id; $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)) { if (!empty($post->object->pump_io->proxyURL)) {
$postarray['extid'] = $post->object->pump_io->proxyURL; $postarray['extid'] = $post->object->pump_io->proxyURL;
} }