mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-30 12:20:38 +01:00
- Added new config flag:limitPerTarget, to disallow flags after an item has already been flagged x times (default 0, or infinite) - New zset flags:byTarget, score is the number of times a flag has been made against that item - "already-flagged" translation key removed, now "post-already-flagged" or "user-already-flagged" -- this fixed bug where flagging a user you've already flagged would tell you you've already flagged this post already. - Refactored Flags.canFlag to throw errors only, instead of returning boolean - Updated ACP form inputs for reputation settings page to be more bootstrappy - +1 upgrade script
15 lines
379 B
Plaintext
15 lines
379 B
Plaintext
'use strict';
|
|
|
|
const db = require('../../database');
|
|
|
|
module.exports = {
|
|
// you should use spaces
|
|
// the underscores are there so you can double click to select the whole thing
|
|
name: 'User_friendly_upgrade_script_name',
|
|
// remember, month is zero-indexed (so January is 0, December is 11)
|
|
timestamp: Date.UTC(2020, 0, 1),
|
|
method: async () => {
|
|
// Do stuff here...
|
|
},
|
|
};
|