Fixing replies filtering and modifying tweets collection messages.

This commit is contained in:
ruidajo 2022-04-26 14:05:58 -05:00
parent bd69b73529
commit ad26072420
3 changed files with 4 additions and 3 deletions

View File

@ -3,5 +3,6 @@ replies
self messages ifEmpty: [ self getMessages ]. self messages ifEmpty: [ self getMessages ].
^ TweetsCollection new ^ TweetsCollection new
messages: (self messages select: [ :each | (each metadata at: 'replie to') isNotEmpty ]); messages: (self messages select: [ :each | (each metadata at: 'replie to') isNotEmpty
and: [ each authorId = self id ]]);
yourself yourself

View File

@ -1,3 +1,3 @@
accessing accessing
messages messages
^ array ^ array select: [ :tweet | tweet isNotNil ].

View File

@ -1,3 +1,3 @@
accessing accessing
oldest oldest
^ self messages last ^ self last