some sites use the old style ostatus:conversation xml field, check for it.
This commit is contained in:
parent
d18427a522
commit
f3816836e5
@ -393,10 +393,17 @@ function get_atom_elements($feed, $item, &$author) {
|
|||||||
|
|
||||||
$rawcnv = $item->get_item_tags(NAMESPACE_OSTATUS, 'conversation');
|
$rawcnv = $item->get_item_tags(NAMESPACE_OSTATUS, 'conversation');
|
||||||
if($rawcnv) {
|
if($rawcnv) {
|
||||||
|
// new style
|
||||||
$ostatus_conversation = normalise_id(unxmlify($rawcnv[0]['attribs']['']['ref']));
|
$ostatus_conversation = normalise_id(unxmlify($rawcnv[0]['attribs']['']['ref']));
|
||||||
|
if(! $ostatus_conversation) {
|
||||||
|
// old style
|
||||||
|
$ostatus_conversation = normalise_id(unxmlify($rawcnv[0]['data']));
|
||||||
|
}
|
||||||
|
if($ostatus_conversation) {
|
||||||
set_iconfig($res,'ostatus','conversation',$ostatus_conversation,true);
|
set_iconfig($res,'ostatus','conversation',$ostatus_conversation,true);
|
||||||
logger('ostatus_conversation: ' . $ostatus_conversation, LOGGER_DATA, LOG_INFO);
|
logger('ostatus_conversation: ' . $ostatus_conversation, LOGGER_DATA, LOG_INFO);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$ostatus_protocol = (($ostatus_conversation) ? true : false);
|
$ostatus_protocol = (($ostatus_conversation) ? true : false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user