That's exactly what this is doing, except the process of getting a comment with less metadata is called scrubbing.

Sent from my iPhone

On 2013-05-08, at 3:28 PM, nicolaasmatthijs <notifications@github.com> wrote:

> In node_modules/oae-messagebox/lib/api.js:
> 
> > + * @param  {String}         newBody         The new message content to push to the body
> > + * @param  {Function}       callback        Invoked when the process completes
> > + * @param  {Object}         callback.err    An error that occurred, if any
> > + */
> > +var updateMessageBody = module.exports.updateMessageBody = function(messageBoxId, created, newBody, callback) {
> > +    Cassandra.runQuery('UPDATE Messages USING CONSISTENCY QUORUM SET body = ? WHERE id = ?', [newBody, messageId], callback);
> > +};
> > +
> > +/**
> > + * Get a list of messages from a message box.
> > + *
> > + * @param  {String}     messageBoxId        The id of the message box from which to fetch messages
> > + * @param  {String}     start               The threadKey (exclusive) of the message from which to start fetching. If not specified, will start from the most recent message
> > + * @param  {Number}     limit               The maximum number of messages to fetch, starting from the start point
> > + * @param  {Object}     [opts]              Optional parameters for the method
> > + * @param  {Boolean}    [opts.scrubDeleted] Whether or not the deleted messages from this messagebox should be scrubbed
> What does scrubbed mean here? In the content comments, we had a pattern where comments with replies that have been deleted would be returned as soft deleted comments with less metadata, as we need this to construct the reply hierarchy in the UI, and comments without replies would just be deleted and no longer be returned in the feed. As far as I'm concerned, that pattern is still valid.
> 
> —
> Reply to this email directly or view it on GitHub.