fix error in API docs - flag chat had been documented as like

This commit is contained in:
Alys
2016-06-17 20:18:32 +10:00
parent a424892dd3
commit 76e86bda86

View File

@@ -149,9 +149,9 @@ api.likeChat = {
}; };
/** /**
* @api {post} /api/v3/groups/:groupId/chat/:chatId/like Like a group chat message * @api {post} /api/v3/groups/:groupId/chat/:chatId/flag Flag a group chat message
* @apiVersion 3.0.0 * @apiVersion 3.0.0
* @apiName LikeChat * @apiName FlagChat
* @apiGroup Chat * @apiGroup Chat
* *
* @apiParam {groupId} groupId The group _id ('party' for the user party and 'habitrpg' for tavern are accepted) * @apiParam {groupId} groupId The group _id ('party' for the user party and 'habitrpg' for tavern are accepted)
@@ -194,7 +194,7 @@ api.flagChat = {
// Log total number of flags (publicly viewable) // Log total number of flags (publicly viewable)
if (!message.flagCount) message.flagCount = 0; if (!message.flagCount) message.flagCount = 0;
if (user.contributor.admin) { if (user.contributor.admin) {
// Arbitraty amount, higher than 2 // Arbitrary amount, higher than 2
message.flagCount = 5; message.flagCount = 5;
} else { } else {
message.flagCount++; message.flagCount++;