1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-07-12 12:52:48 +00:00

Ready to implement comments

This commit is contained in:
2020-01-03 17:01:09 +01:00
parent 90d81c1d7a
commit 5a45096fa6
4 changed files with 26 additions and 2 deletions

@ -105,7 +105,8 @@ export class PostsController {
// Determine user access level
user_access: ACCESS_LEVELS_API[await PostsHelper.GetAccessLevel(h.optionnalUserID, p)],
// TODO : add comments
// Load comments (if possible)
comments: await PostsHelper.AllowCommentsOnPost(p) ? "to come" : null,
};
return data;