FEATURE: Allow group moderators to close/archive topics

* FEATURE: Allow group moderators to close/archive topics
This commit is contained in:
jbrw
2020-07-14 12:36:19 -04:00
committed by GitHub
parent cc6d722de1
commit 06073fe8c6
31 changed files with 215 additions and 38 deletions

View File

@ -255,6 +255,14 @@ export function applyDefaultHandlers(pretender) {
pretender.get("/t/12.json", () => response(fixturesByUrl["/t/12/1.json"]));
pretender.put("/t/1234/re-pin", success);
pretender.get("/t/2480.json", () => {
const json = fixturesByUrl["/t/34/1.json"];
json.details.can_archive_topic = true;
json.details.can_close_topic = true;
return response(json);
});
pretender.get("/t/id_for/:slug", () => {
return response({
id: 280,