Modifying newest tweet selection.
This commit is contained in:
parent
a08073232d
commit
a2d5d80e57
@ -2,6 +2,4 @@ accessing
|
|||||||
newest
|
newest
|
||||||
self messages ifNil: [ ^ nil ].
|
self messages ifNil: [ ^ nil ].
|
||||||
self messages ifEmpty: [ ^ nil ].
|
self messages ifEmpty: [ ^ nil ].
|
||||||
self pinned created > self messages second created
|
^ (self select:[ :tweet | tweet created = ((self collect: [ :each | each created ]) asSortedCollection last)]) first
|
||||||
ifTrue: [ ^ self pinned ]
|
|
||||||
ifFalse: [ ^ self messages second ]
|
|
Loading…
Reference in New Issue
Block a user