mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FEATURE: Allow group moderators to close/archive topics
* FEATURE: Allow group moderators to close/archive topics
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user