From a2d5d80e571f5bc978b7047a0909d080a01637a7 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Tue, 3 May 2022 21:25:22 -0500 Subject: [PATCH] Modifying newest tweet selection. --- .../TweetsCollection.class/instance/newest.st | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Socialmetrica.package/TweetsCollection.class/instance/newest.st b/Socialmetrica.package/TweetsCollection.class/instance/newest.st index 3a8e529..59db248 100644 --- a/Socialmetrica.package/TweetsCollection.class/instance/newest.st +++ b/Socialmetrica.package/TweetsCollection.class/instance/newest.st @@ -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 ] \ No newline at end of file + ^ (self select:[ :tweet | tweet created = ((self collect: [ :each | each created ]) asSortedCollection last)]) first \ No newline at end of file