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();
|
||||
|
||||
$result = $disco->lookup($addr);
|
||||
|
||||
if (!$result) {
|
||||
try {
|
||||
$result = $disco->lookup($addr);
|
||||
} catch (Exception $e) {
|
||||
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), null);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user