Commit e1b09199 authored by Mario's avatar Mario

do not fail if there is no content. it could be just an attachment.

parent 576ab2c0
......@@ -1276,11 +1276,6 @@ function as_create_note($channel,$observer_hash,$act) {
$content = as_get_content($act->obj);
if(! $content) {
logger('no content');
return;
}
$s['aid'] = $channel['channel_account_id'];
$s['uid'] = $channel['channel_id'];
$s['uuid'] = '';
......@@ -1528,11 +1523,6 @@ function as_announce_note($channel,$observer_hash,$act) {
$content = as_get_content($act->obj);
if(! $content) {
logger('no content');
return;
}
$s['owner_xchan'] = $s['author_xchan'] = $observer_hash;
$s['aid'] = $channel['channel_account_id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment