Commit c19f2aca authored by Mario's avatar Mario

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


(cherry picked from commit e1b09199)
parent d7bcf6ed
......@@ -1273,11 +1273,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'] = '';
......@@ -1525,11 +1520,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