Merge branch 'master' into nightly
Some merge requests that were aimed at master
This commit is contained in:
@@ -355,7 +355,7 @@ class FeedSub extends Managed_DataObject
|
||||
$response = $client->post($hub, $headers, $post);
|
||||
$status = $response->getStatus();
|
||||
// PuSH specificed response status code
|
||||
if ($status == 202) {
|
||||
if ($status == 202 || $status == 204) {
|
||||
common_log(LOG_INFO, __METHOD__ . ': sub req ok, awaiting verification callback');
|
||||
return;
|
||||
} else if ($status >= 200 && $status < 300) {
|
||||
|
@@ -828,11 +828,13 @@ class Ostatus_profile extends Managed_DataObject
|
||||
}
|
||||
}
|
||||
|
||||
$obj = ActivityUtils::getFeedAuthor($feedEl);
|
||||
|
||||
// @todo FIXME: We should check whether this feed has elements
|
||||
// with different <author> or <dc:creator> elements, and... I dunno.
|
||||
// Do something about that.
|
||||
|
||||
$obj = ActivityObject::fromRssChannel($feedEl);
|
||||
if(empty($obj)) { $obj = ActivityObject::fromRssChannel($feedEl); }
|
||||
|
||||
return self::ensureActivityObjectProfile($obj, $hints);
|
||||
}
|
||||
|
Reference in New Issue
Block a user