feat: Add "Followers you know" widget to user profiles (#34652)
This commit is contained in:
parent
c9a554bdca
commit
b135a831ea
12 changed files with 213 additions and 17 deletions
|
@ -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);
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue