aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-12 21:58:40 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-14 16:55:28 +0200
commit5530833bf88342bc407375fb9c29b99b2c79e7bc (patch)
treeb2ac7730e1ac76569f4d882cfbec9c5f848c2cc4
parent2f8fb2b663c9b1ea1879724d8542654263085b6d (diff)
downloadvolse-hubzilla-5530833bf88342bc407375fb9c29b99b2c79e7bc.tar.gz
volse-hubzilla-5530833bf88342bc407375fb9c29b99b2c79e7bc.tar.bz2
volse-hubzilla-5530833bf88342bc407375fb9c29b99b2c79e7bc.zip
preserve the ostatus:conversation pointer also
-rw-r--r--include/feedutils.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 22e2b5add..317516c74 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;