mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Allow users to customize bonuses for reviewable types
A new settings section in the review queue allows admins to specify that certain types of flags should be weighted higher than others.
This commit is contained in:
@@ -89,6 +89,30 @@ export default function(helpers) {
|
||||
});
|
||||
});
|
||||
|
||||
this.get("/review/settings", () => {
|
||||
return response(200, {
|
||||
reviewable_score_types: [
|
||||
{
|
||||
id: 3,
|
||||
title: "Off-Topic",
|
||||
score_bonus: 0.0
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Inappropriate",
|
||||
score_bonus: 0.0
|
||||
}
|
||||
],
|
||||
reviewable_settings: {
|
||||
id: 13870,
|
||||
reviewable_score_type_ids: [3, 4]
|
||||
},
|
||||
__rest_serializer: "1"
|
||||
});
|
||||
});
|
||||
|
||||
this.put("/review/settings", () => response(200, {}));
|
||||
|
||||
this.get("/review/:id", () => {
|
||||
return response(200, {
|
||||
reviewable: flag
|
||||
|
||||
Reference in New Issue
Block a user