diff --git a/migrations/20130908_cleanup_derby_corruption.js b/migrations/20130908_cleanup_derby_corruption.js index ab4e8da806..49c28141bd 100644 --- a/migrations/20130908_cleanup_derby_corruption.js +++ b/migrations/20130908_cleanup_derby_corruption.js @@ -29,9 +29,6 @@ db.users.find().forEach(function(user){ }); if (!_.isEqual(idList, preened)) { user[type + "Ids"] = preened; - if (!!user.markModified) { - user.markModified(type+'Ids'); - } } }); diff --git a/src/models/user.js b/src/models/user.js index 2109fc06d5..1c368d57ec 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -12,11 +12,9 @@ var UserSchema = new Schema({ type: String, 'default': helpers.uuid }, - /* - # We want to know *every* time an object updates. Mongoose uses __v to designate when an object contains arrays which - # have been updated (http://goo.gl/gQLz41), but we want *every* update - */ + //We want to know *every* time an object updates. Mongoose uses __v to designate when an object contains arrays which + // have been updated (http://goo.gl/gQLz41), but we want *every* update _v: { type: Number, 'default': 0 @@ -149,14 +147,9 @@ var UserSchema = new Schema({ /* FIXME remove?*/ party: { - /*party._id FIXME make these populate docs?*/ - - current: String, - /*party._id*/ - - invitation: String, - /*party._id*/ - + //party._id //FIXME make these populate docs? + current: String, // party._id + invitation: String, // party._id lastMessageSeen: String, leader: Boolean }, @@ -174,9 +167,7 @@ var UserSchema = new Schema({ blurb: String, imageUrl: String, name: String, - /*["http://ocdevel.com" ]*/ - - websites: Array + websites: Array //["http://ocdevel.com" ] }, stats: { hp: Number, @@ -187,7 +178,6 @@ var UserSchema = new Schema({ tags: [ { /* FIXME use refs?*/ - id: String, name: String } @@ -243,7 +233,7 @@ UserSchema.methods.toJSON = function() { doc.id = doc._id; transformTaskLists(doc); // we need to also transform for our server-side routes - // Remove some unecessary data + // Remove some unecessary data as far as client consumers are concerned _.each(['habit', 'daily', 'todo', 'reward'], function(type) { delete doc["#{type}Ids"] }); diff --git a/views/shared/modals/new-stuff.jade b/views/shared/modals/new-stuff.jade index d96e8b26be..285d8f6cb3 100644 --- a/views/shared/modals/new-stuff.jade +++ b/views/shared/modals/new-stuff.jade @@ -20,8 +20,7 @@ div(modal='user.flags.rewrite !== false') Android & iOS Apps are out! p. They're open source, so help us make them awesome. As for the rewrite: not all features are yet ported, but don't worry - you're still getting drops and streak-bonuses in the background, even if you can't see them yet. - If there are features you miss, check in on them at old.habitrpg.com and tell them to hurry on over. And if you're not already, be sure to follow our updates - on Tumblr (there are some fun member highlights recently). One more thing: if you are a Veteran of the old site, I have granted you a Veteran Wolf! Check your inventory :) + We'll be working hard to bring in all the missing features. And if you're not already, be sure to follow our updates on Tumblr (there are some fun member highlights recently). One more thing: if you are a Veteran of the old site, I have granted you a Veteran Wolf! Check your inventory :) table(style='clear:both;') tr