forked from GNUsocial/gnu-social
[TheFreeNetwork] Small rewrite to the onStartTFNLookup event
This commit is contained in:
parent
34c5be5c42
commit
c7055341f9
@ -79,11 +79,13 @@ class TheFreeNetworkModule extends Module
|
||||
{
|
||||
$profile_id = $this->lookup($uri, $class);
|
||||
|
||||
$perf = common_config('performance', 'high');
|
||||
if (is_null($profile_id)) {
|
||||
$perf = common_config('performance', 'high');
|
||||
|
||||
if (is_null($profile_id) && !$perf && $this->lrdd) {
|
||||
// Force lookup with online resources
|
||||
$profile_id = $this->lookup($uri, $class, true);
|
||||
if (!$perf && $this->lrdd) {
|
||||
// Force lookup with online resources
|
||||
$profile_id = $this->lookup($uri, $class, true);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user