From dc2d96a502aafb54f0782eb0ffdc7a77ffe86667 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 24 Oct 2022 17:56:44 -0400 Subject: [PATCH] Fix condition for follows export - Select follows instead of followers - Filter out archived contacts --- src/Module/Settings/UserExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Settings/UserExport.php b/src/Module/Settings/UserExport.php index 74bb517c39..85e1f75c65 100644 --- a/src/Module/Settings/UserExport.php +++ b/src/Module/Settings/UserExport.php @@ -222,7 +222,7 @@ class UserExport extends BaseSettings // write the table header (like Mastodon) echo "Account address, Show boosts\n"; // get all the contacts - $contacts = DBA::select('contact', ['addr', 'url'], ['uid' => $user_id, 'self' => false, 'rel' => [1, 3], 'deleted' => false]); + $contacts = DBA::select('contact', ['addr', 'url'], ['uid' => $user_id, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND], 'deleted' => false, 'archive' => false]); while ($contact = DBA::fetch($contacts)) { echo ($contact['addr'] ?: $contact['url']) . ", true\n"; } -- 2.39.5