store tweet in subject field to avoid non lazy retrieval of parts to construct excerpt when no subject.

This commit is contained in:
alta88@gmail.com 2009-10-30 18:31:18 -06:00
Родитель 07b383d042
Коммит 85fffc9d8a
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -434,6 +434,10 @@ SnowlTwitter.prototype = {
message.source = this; message.source = this;
message.externalID = item.id; message.externalID = item.id;
// Place tweet text in subject; avoids requiring parts.content or parts.summary
// as excerpt, used when no subject; non lazy retrieval of parts from the db
// in List view is not a perfomance enhancer for large lists.
message.subject = item.text;
message.timestamp = new Date(item.created_at); message.timestamp = new Date(item.created_at);
message.received = received || new Date(); message.received = received || new Date();
message.author = new SnowlIdentity(null, message.author = new SnowlIdentity(null,