mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 01:09:55 +00:00
[Glitch] feat: Add "Followers you know" widget to user profiles
Port b135a831ea to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -59,3 +59,16 @@ export const getAccountHidden = createSelector(
|
||||
return hidden && !(isSelf || followingOrRequested);
|
||||
},
|
||||
);
|
||||
|
||||
export const getAccountFamiliarFollowers = createSelector(
|
||||
[
|
||||
(state: RootState) => state.accounts,
|
||||
(state: RootState, id: string) => state.accounts_familiar_followers[id],
|
||||
],
|
||||
(accounts, accounts_familiar_followers) => {
|
||||
if (!accounts_familiar_followers) return null;
|
||||
return accounts_familiar_followers
|
||||
.map((id) => accounts.get(id))
|
||||
.filter((f) => !!f);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user