From ac5d935ce1d7bdd1bc64a94897c5534c505bfe8b Mon Sep 17 00:00:00 2001 From: ruidajo Date: Sat, 14 May 2022 19:39:21 -0500 Subject: [PATCH] Fixing messages for nitter user and tweets filtering. --- Socialmetrica.package/NitterUser.class/instance/tweets.st | 2 +- Socialmetrica.package/TwitterUser.class/instance/messages.st | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Socialmetrica.package/NitterUser.class/instance/tweets.st b/Socialmetrica.package/NitterUser.class/instance/tweets.st index ecc33fc..7b1fa66 100644 --- a/Socialmetrica.package/NitterUser.class/instance/tweets.st +++ b/Socialmetrica.package/NitterUser.class/instance/tweets.st @@ -14,7 +14,7 @@ tweets select: [ :each | (each authorId = '1502504562984374276') or: [ each authorId = self id ] ] ]. (self userName ~= 'FranciaMarquezM' or: [ self userName ~= 'sandralajas' ]) - ifFalse: [ subcollection := self messages select: [ :each | each authorId = self id ] ]. + ifTrue: [ subcollection := self messages select: [ :each | each authorId = self id ] ]. ^ TweetsCollection new messages: subcollection; yourself \ No newline at end of file diff --git a/Socialmetrica.package/TwitterUser.class/instance/messages.st b/Socialmetrica.package/TwitterUser.class/instance/messages.st index 8bb406d..ecaeff9 100644 --- a/Socialmetrica.package/TwitterUser.class/instance/messages.st +++ b/Socialmetrica.package/TwitterUser.class/instance/messages.st @@ -1,4 +1,5 @@ accessing messages messages ifNil: [ ^ messages := TweetsCollection new ]. + self config isEmpty ifTrue: [ ^ messages ]. ^ messages select: [ :message | message created between: self reportingPeriod start and: self reportingPeriod end ] \ No newline at end of file