aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-06 22:49:45 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-07 09:37:47 +0200
commitbea0a491cf319946a11c9a5b8e913e4cfc8b08d0 (patch)
tree2f6a5fa55c471b54bf5cb47214f8ded3a1f703af /include/feedutils.php
parent108b052e4eedc8d0002c34802d4a96faee4a7cd6 (diff)
downloadvolse-hubzilla-bea0a491cf319946a11c9a5b8e913e4cfc8b08d0.tar.gz
volse-hubzilla-bea0a491cf319946a11c9a5b8e913e4cfc8b08d0.tar.bz2
volse-hubzilla-bea0a491cf319946a11c9a5b8e913e4cfc8b08d0.zip
Looks like we need the mastodon feed check in core - grrr. Will do that for now until it can be put back into plugins.
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 5f86ad5a4..708532013 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -397,6 +397,9 @@ function get_atom_elements($feed, $item, &$author) {
}
$ostatus_protocol = (($item->get_item_tags(NAMESPACE_OSTATUS, 'conversation')) ? true : false);
+ $mastodon = (($item->get_item_tags('http://mastodon.social/schema/1.0','scope')) ? true : false);
+ if($mastodon)
+ $ostatus_protocol = true;
$apps = $item->get_item_tags(NAMESPACE_STATUSNET, 'notice_info');
if($apps && $apps[0]['attribs']['']['source']) {