aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-12 21:58:40 -0700
committerzotlabs <mike@macgirvin.com>2017-06-12 21:58:40 -0700
commitdd8feac54070f9aefb7da034f2d15e6dce872a3b (patch)
tree6f11cfd68b654cc3ae73c7774fbc6b8482af6576 /include
parentf526b9fcfbca2cf7a23d21653da3c63ad4bc91fa (diff)
downloadvolse-hubzilla-dd8feac54070f9aefb7da034f2d15e6dce872a3b.tar.gz
volse-hubzilla-dd8feac54070f9aefb7da034f2d15e6dce872a3b.tar.bz2
volse-hubzilla-dd8feac54070f9aefb7da034f2d15e6dce872a3b.zip
preserve the ostatus:conversation pointer also
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 5af6a01b0..41c11bce1 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -386,7 +386,14 @@ function get_atom_elements($feed, $item, &$author) {
}
}
- $ostatus_protocol = (($item->get_item_tags(NAMESPACE_OSTATUS, 'conversation')) ? true : false);
+ $rawcnv = $item->get_item_tags(NAMESPACE_OSTATUS, 'conversation');
+ if($rawcnv) {
+ $ostatus_conversation = unxmlify($rawcnv[0]['attribs']['']['ref']);
+ set_iconfig($res,'ostatus','conversation',$ostatus_conversation,true);
+ }
+
+ $ostatus_protocol = (($ostatus_conversation) ? true : false);
+
$mastodon = (($item->get_item_tags('http://mastodon.social/schema/1.0','scope')) ? true : false);
if($mastodon)
$ostatus_protocol = true;