2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

Allow admin to view logs of automatic groups.

This commit is contained in:
Guo Xiang Tan 2018-04-05 16:31:09 +08:00
parent a9d5d1bb36
commit e36e9de28a
7 changed files with 127 additions and 38 deletions

View file

@ -308,6 +308,10 @@ export default function() {
return response(200, fixturesByUrl['/groups/discourse/posts.json']);
});
this.get("/groups/moderators/members.json", () => {
return response(200, fixturesByUrl['/groups/discourse/members.json']);
});
this.get('/t/:topic_id/posts.json', request => {
const postIds = request.queryParams.post_ids;
const posts = postIds.map(p => ({id: parseInt(p), post_number: parseInt(p) }));