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