From f5de9fe99ae895cd2defcbda232f9030586eca92 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 9 Nov 2023 15:50:25 +0100 Subject: [PATCH] [Glitch] Allow viewing and severing relationships with suspended accounts Port c451bbe249475b937906f8f4d85c1f1eb9804343 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/actions/accounts.js | 2 +- .../flavours/glitch/components/account.jsx | 2 +- .../features/account/components/header.jsx | 30 +++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/javascript/flavours/glitch/actions/accounts.js b/app/javascript/flavours/glitch/actions/accounts.js index 6d9544d651..bb03e68de8 100644 --- a/app/javascript/flavours/glitch/actions/accounts.js +++ b/app/javascript/flavours/glitch/actions/accounts.js @@ -567,7 +567,7 @@ export function fetchRelationships(accountIds) { dispatch(fetchRelationshipsRequest(newAccountIds)); - api(getState).get(`/api/v1/accounts/relationships?${newAccountIds.map(id => `id[]=${id}`).join('&')}`).then(response => { + api(getState).get(`/api/v1/accounts/relationships?with_suspended=true&${newAccountIds.map(id => `id[]=${id}`).join('&')}`).then(response => { dispatch(fetchRelationshipsSuccess(response.data)); }).catch(error => { dispatch(fetchRelationshipsFail(error)); diff --git a/app/javascript/flavours/glitch/components/account.jsx b/app/javascript/flavours/glitch/components/account.jsx index 00bf537bbb..36d8a62b32 100644 --- a/app/javascript/flavours/glitch/components/account.jsx +++ b/app/javascript/flavours/glitch/components/account.jsx @@ -119,7 +119,7 @@ class Account extends ImmutablePureComponent { buttons =