Add notifications for new sign-ups (#16953)
This commit is contained in:
parent
3e12abc1fe
commit
7b816eb5ae
11 changed files with 73 additions and 65 deletions
|
@ -45,7 +45,7 @@ defineMessages({
|
|||
});
|
||||
|
||||
const fetchRelatedRelationships = (dispatch, notifications) => {
|
||||
const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id);
|
||||
const accountIds = notifications.filter(item => ['follow', 'follow_request', 'admin.sign_up'].indexOf(item.type) !== -1).map(item => item.account.id);
|
||||
|
||||
if (accountIds.length > 0) {
|
||||
dispatch(fetchRelationships(accountIds));
|
||||
|
@ -132,6 +132,7 @@ const excludeTypesFromFilter = filter => {
|
|||
'poll',
|
||||
'status',
|
||||
'update',
|
||||
'admin.sign_up',
|
||||
]);
|
||||
|
||||
return allTypes.filterNot(item => item === filter).toJS();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue