Discovery::lookup now throws an exception
This commit is contained in:
parent
88ae7f53bb
commit
f23a877cd8
|
@ -1288,9 +1288,9 @@ class Ostatus_profile extends Memcached_DataObject
|
||||||
|
|
||||||
$disco = new Discovery();
|
$disco = new Discovery();
|
||||||
|
|
||||||
|
try {
|
||||||
$result = $disco->lookup($addr);
|
$result = $disco->lookup($addr);
|
||||||
|
} catch (Exception $e) {
|
||||||
if (!$result) {
|
|
||||||
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), null);
|
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), null);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user