mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
added empty array for customActions and another indentation fix attempt, related to #7284
This commit is contained in:
@@ -200,6 +200,16 @@ module.exports = function (User) {
|
||||
getIPMatchedUsers(user, function (err) {
|
||||
next(err, user);
|
||||
});
|
||||
user.customActions = [].concat(user.customActions);
|
||||
/*
|
||||
// then spam prevention plugins, using the "filter:user.getRegistrationQueue" hook can be like:
|
||||
user.customActions.push({
|
||||
title: '[[spam-be-gone:report-user]]',
|
||||
id: 'report-spam-user-' + user.username,
|
||||
class: 'btn-warning report-spam-user',
|
||||
icon: 'fa-flag'
|
||||
});
|
||||
*/
|
||||
}, next);
|
||||
},
|
||||
function (users, next) {
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
<!-- IF users.usernameSpam -->
|
||||
<i class="fa fa-times-circle text-danger" title="[[admin/manage/registration:list.username-spam, {users.spamData.username.frequency}, {users.spamData.username.appears}, {users.spamData.username.confidence}]]"></i>
|
||||
<!-- ELSE -->
|
||||
<!-- IF users.spamChecked -->
|
||||
<i class="fa fa-check text-success"></i>
|
||||
<!-- ENDIF users.spamChecked -->
|
||||
<!-- IF users.spamChecked -->
|
||||
<i class="fa fa-check text-success"></i>
|
||||
<!-- ENDIF users.spamChecked -->
|
||||
<!-- ENDIF users.usernameSpam -->
|
||||
{users.username}
|
||||
</td>
|
||||
@@ -40,9 +40,9 @@
|
||||
<!-- IF users.emailSpam -->
|
||||
<i class="fa fa-times-circle text-danger" title="[[admin/manage/registration:list.email-spam, {users.spamData.email.frequency}, {users.spamData.email.appears}]]"></i>
|
||||
<!-- ELSE -->
|
||||
<!-- IF users.spamChecked -->
|
||||
<i class="fa fa-check text-success"></i>
|
||||
<!-- ENDIF users.spamChecked -->
|
||||
<!-- IF users.spamChecked -->
|
||||
<i class="fa fa-check text-success"></i>
|
||||
<!-- ENDIF users.spamChecked -->
|
||||
<!-- ENDIF users.emailSpam -->
|
||||
{users.email}
|
||||
</td>
|
||||
@@ -50,9 +50,9 @@
|
||||
<!-- IF users.ipSpam -->
|
||||
<i class="fa fa-times-circle text-danger" title="[[admin/manage/registration:list.ip-spam, {users.spamData.ip.frequency}, {users.spamData.ip.appears}]]"></i>
|
||||
<!-- ELSE -->
|
||||
<!-- IF users.spamChecked -->
|
||||
<i class="fa fa-check text-success"></i>
|
||||
<!-- ENDIF users.spamChecked -->
|
||||
<!-- IF users.spamChecked -->
|
||||
<i class="fa fa-check text-success"></i>
|
||||
<!-- ENDIF users.spamChecked -->
|
||||
<!-- ENDIF users.ipSpam -->
|
||||
{users.ip}
|
||||
<!-- BEGIN users.ipMatch -->
|
||||
|
||||
Reference in New Issue
Block a user