mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 16:42:48 +01:00
ditching rewardID in favour of verbose id's
This commit is contained in:
@@ -55,7 +55,7 @@ rewards.get = function(callback) {
|
||||
rewards: function(next) {
|
||||
plugins.fireHook('filter:rewards.rewards', [
|
||||
{
|
||||
"rewardID": 0,
|
||||
"id": "core:add-to-group",
|
||||
"name": "Add to Group",
|
||||
"inputs": [
|
||||
{
|
||||
@@ -80,7 +80,7 @@ rewards.get = function(callback) {
|
||||
]
|
||||
},
|
||||
{
|
||||
"rewardID": 1,
|
||||
"id": "core:alert-user",
|
||||
"name": "Send alert message",
|
||||
"inputs": [
|
||||
{
|
||||
@@ -107,7 +107,7 @@ function getConditions() {
|
||||
function getActiveRewards(callback) {
|
||||
callback(false, [
|
||||
{
|
||||
"rewardID": 1,
|
||||
"id": "core:alert-user",
|
||||
"condition": "postcount",
|
||||
"conditional": "greaterthan",
|
||||
"rewards": {
|
||||
@@ -118,7 +118,7 @@ function getActiveRewards(callback) {
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"rewardID": 0,
|
||||
"id": "core:add-to-group",
|
||||
"condition": "lastLoggedIn",
|
||||
"conditional": "lesserthan",
|
||||
"rewards": {
|
||||
|
||||
Reference in New Issue
Block a user