pixelfed/patches/0005-disable-beagle.patch

44 lines
1.5 KiB
Diff
Raw Normal View History

2024-11-18 12:51:57 +00:00
From b32f213bd3ef168f5c39420ff1afc8cfc58ca215 Mon Sep 17 00:00:00 2001
2024-01-24 12:20:14 +00:00
From: chris <cg@zknt.org>
2024-11-18 12:51:57 +00:00
Date: Mon, 18 Nov 2024 13:45:58 +0100
Subject: [PATCH 5/6] disable beagle
2023-10-08 13:00:18 +00:00
beagle is a remote API service provided by dansup and used for centralised lookups.
Using the beagle service without users explicit consent violates GDPR.
2024-07-01 10:08:22 +00:00
As it's not configurable at the moment this patch disables remote communication of user data with beagle.
2023-10-08 13:00:18 +00:00
---
2024-07-01 10:08:22 +00:00
app/Services/Account/RemoteAuthService.php | 3 +++
2024-11-18 12:51:57 +00:00
1 file changed, 3 insertions(+)
2023-10-08 13:00:18 +00:00
diff --git a/app/Services/Account/RemoteAuthService.php b/app/Services/Account/RemoteAuthService.php
2024-07-01 10:08:22 +00:00
index 4412352a..abab2151 100644
2023-10-08 13:00:18 +00:00
--- a/app/Services/Account/RemoteAuthService.php
+++ b/app/Services/Account/RemoteAuthService.php
2024-07-01 10:08:22 +00:00
@@ -115,6 +115,7 @@ class RemoteAuthService
2024-03-12 16:11:50 +00:00
public static function isDomainCompatible($domain = false)
{
2024-07-01 10:08:22 +00:00
+ return true;
2024-03-12 16:11:50 +00:00
if(!$domain) {
return false;
2023-10-08 13:00:18 +00:00
}
2024-07-01 10:08:22 +00:00
@@ -144,6 +145,7 @@ class RemoteAuthService
2023-10-08 13:00:18 +00:00
public static function lookupWebfingerUses($wf)
{
2024-07-01 10:08:22 +00:00
+ return 0;
2023-10-08 13:00:18 +00:00
try {
$res = Http::timeout(20)->retry(3, 750)->get('https://beagle.pixelfed.net/api/v1/raa/lookup?webfinger=' . $wf);
if(!$res->ok()) {
2024-07-01 10:08:22 +00:00
@@ -166,6 +168,7 @@ class RemoteAuthService
2023-10-08 13:00:18 +00:00
public static function submitToBeagle($ow, $ou, $dw, $du)
{
2024-07-01 10:08:22 +00:00
+ return;
2023-10-08 13:00:18 +00:00
try {
$url = 'https://beagle.pixelfed.net/api/v1/raa/submit';
$res = Http::throw()->timeout(10)->get($url, [
--
2024-10-06 14:20:13 +00:00
2.44.1
2023-10-08 13:00:18 +00:00