Modifying newest tweet selection.

This commit is contained in:
ruidajo 2022-05-03 21:25:22 -05:00
parent a08073232d
commit a2d5d80e57

View File

@ -2,6 +2,4 @@ accessing
newest
self messages ifNil: [ ^ nil ].
self messages ifEmpty: [ ^ nil ].
self pinned created > self messages second created
ifTrue: [ ^ self pinned ]
ifFalse: [ ^ self messages second ]
^ (self select:[ :tweet | tweet created = ((self collect: [ :each | each created ]) asSortedCollection last)]) first