Modifying newest tweet selection.
This commit is contained in:
parent
a08073232d
commit
a2d5d80e57
@ -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
|
Loading…
Reference in New Issue
Block a user