Test in Ostatus_profile if avatar is an image before writing to filesystem
This clears one FIXME... We also fix HTTPClient::quickGet() (and a related call in OStatus testfeed.php).
This commit is contained in:
@@ -53,7 +53,7 @@ if (!$sub) {
|
||||
|
||||
// Fetch the URL
|
||||
try {
|
||||
$xml = HTTPClient::quickGet($feedurl);
|
||||
$xml = HTTPClient::quickGet($feedurl, 'text/html,application/xhtml+xml');
|
||||
} catch (Exception $e) {
|
||||
echo sprintf("Could not fetch feedurl %s (%d).\n", $e->getMessage(), $e->getCode());
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user