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

Commit 120802b8 authored by Evan Prodromou's avatar Evan Prodromou

change code order to make shorter lines

parent 1a813566
......@@ -68,12 +68,13 @@ class FeedImporter extends QueueHandler
try {
$doc = DOMDocument::loadXML($xml);
if ($doc->documentElement->namespaceURI != Activity::ATOM ||
$doc->documentElement->localName != 'feed') {
$feed = $doc->documentElement;
if ($feed->namespaceURI != Activity::ATOM ||
$feed->localName != 'feed') {
throw new ClientException(_("Not an atom feed."));
}
$feed = $doc->documentElement;
$author = ActivityUtils::getFeedAuthor($feed);
......
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