|
@@ -1648,9 +1648,13 @@ app.get( '/archive/note/:id', loadUser, function( req, res ) {
|
|
|
//
|
|
|
// Data types:
|
|
|
// Posts - Posts are the main items in backchannel, useful for questions or discussion points
|
|
|
+// [[ example object needed]]
|
|
|
// Comments - Comments are replies to posts, for clarification or answering questions
|
|
|
+// [[ example object needed]]
|
|
|
// Votes - Votes signifyg a users approval of a post
|
|
|
+// [[ example object needed]]
|
|
|
// Flags - Flagging a post signifies that it is against the rules, 2 flags moves it to the bottomw
|
|
|
+// [[ example object needed]]
|
|
|
//
|
|
|
//
|
|
|
// Post Schema
|
|
@@ -1662,7 +1666,9 @@ app.get( '/archive/note/:id', loadUser, function( req, res ) {
|
|
|
// date - Date post was made, updates when any comments are made for the post
|
|
|
// comments - An array of comments which contain a body, userName, and userAffil
|
|
|
// votes - An array of user ids which are the users that voted
|
|
|
+// [[ example needed ]]
|
|
|
// reports - An array of user ids which are the users that reported the post
|
|
|
+// [[ reports would be "this post is flagged as inappropriate"? ]]
|
|
|
//
|
|
|
// Posts and comments can be made anonymously. When a post is anonymous, the users info is stripped
|
|
|
// from the post and the userName is set to Anonymous and the userAffil to N/A. This is to allow
|