fix phantom attachments in feeds
This commit is contained in:
parent
5aa18a11af
commit
688722de5b
@ -181,7 +181,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
|
||||
return $result;
|
||||
}
|
||||
|
||||
$r = q("select count(*) as total from abook where abook_account = %d and abook_network = 'rss'",
|
||||
$r = q("select count(*) as total from abook where abook_account = %d and ( abook_flags & ABOOK_FLAG_FEED )",
|
||||
intval($aid)
|
||||
);
|
||||
if($r)
|
||||
|
@ -1592,9 +1592,9 @@ function get_atom_elements($feed,$item,&$author) {
|
||||
$title = ' ';
|
||||
if(! $type)
|
||||
$type = 'application/octet-stream';
|
||||
}
|
||||
$res['attach'][] = array('href' => $link, 'length' => $len, 'type' => $type, 'title' => $title );
|
||||
}
|
||||
}
|
||||
|
||||
$rawobj = $item->get_item_tags(NAMESPACE_ACTIVITY, 'object');
|
||||
|
||||
|
Reference in New Issue
Block a user