We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 65c8dc31 authored by Evan Prodromou's avatar Evan Prodromou

rename $rss to $channel to prevent misunderstanding

RSS feeds have the format
<rss><channel><item/><item/><item/></channel></rss>. The element named
$rss was actually the <channel> element, so I renamed the variable so
I wouldn't hurt my head.
parent c0f65720
......@@ -1329,7 +1329,7 @@ class Activity
}
}
function _fromRssItem($item, $rss)
function _fromRssItem($item, $channel)
{
$verbEl = $this->_child($item, self::VERB);
......@@ -1354,8 +1354,8 @@ class Activity
$dcCreatorEl = $this->_child($item, self::CREATOR, self::DC);
if (!empty($dcCreatorEl)) {
$this->actor = ActivityObject::fromDcCreator($dcCreatorEl);
} else if (!empty($rss)) {
$this->actor = ActivityObject::fromRssChannel($rss);
} else if (!empty($channel)) {
$this->actor = ActivityObject::fromRssChannel($channel);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment