1
0
Fork 0
forked from mirror/pixelfed

disable beagle service

This commit is contained in:
hnrd 2023-07-17 10:47:39 +02:00
parent d2e6e4179f
commit 1621a5eba0

View file

@ -112,6 +112,7 @@ class RemoteAuthService
} }
return Cache::remember(self::CACHE_KEY . 'domain-compatible:' . $domain, 14400, function() use($domain) { return Cache::remember(self::CACHE_KEY . 'domain-compatible:' . $domain, 14400, function() use($domain) {
return true;
try { try {
$res = Http::timeout(20)->retry(3, 750)->get('https://beagle.pixelfed.net/api/v1/raa/domain?domain=' . $domain); $res = Http::timeout(20)->retry(3, 750)->get('https://beagle.pixelfed.net/api/v1/raa/domain?domain=' . $domain);
if(!$res->ok()) { if(!$res->ok()) {
@ -136,6 +137,7 @@ class RemoteAuthService
public static function lookupWebfingerUses($wf) public static function lookupWebfingerUses($wf)
{ {
return 0;
try { try {
$res = Http::timeout(20)->retry(3, 750)->get('https://beagle.pixelfed.net/api/v1/raa/lookup?webfinger=' . $wf); $res = Http::timeout(20)->retry(3, 750)->get('https://beagle.pixelfed.net/api/v1/raa/lookup?webfinger=' . $wf);
if(!$res->ok()) { if(!$res->ok()) {
@ -158,6 +160,7 @@ class RemoteAuthService
public static function submitToBeagle($ow, $ou, $dw, $du) public static function submitToBeagle($ow, $ou, $dw, $du)
{ {
return;
try { try {
$url = 'https://beagle.pixelfed.net/api/v1/raa/submit'; $url = 'https://beagle.pixelfed.net/api/v1/raa/submit';
$res = Http::throw()->timeout(10)->get($url, [ $res = Http::throw()->timeout(10)->get($url, [