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();
|
||||||
|
|
||||||
$result = $disco->lookup($addr);
|
try {
|
||||||
|
$result = $disco->lookup($addr);
|
||||||
if (!$result) {
|
} catch (Exception $e) {
|
||||||
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