/**
 * Trim a full user object into a "public safe"
 * user object. The logic is housed here so when
 * the database grows more complex, we can manage
 * trimming a user in one place
 */
module.exports = function(userAttributes) {
  return {
    "name": userAttributes.name,
    "username": userAttributes.username,
    "profile_picture": userAttributes.profile_picture,
    "last_active": userAttributes.last_active
  }
}
@@ -175,16 +175,245 @@
 ne place
+. This can even be%0A * role-based trimming based off of the user attributes%0A *%0A * @param %7BObject%7D full list of user attributes from database%0A * %0A * @return %7BObject%7D %22trimmed%22 user object containing publically accessible attributes
 %0A */%0Amod

update docs on user trimming controller