From 0b172e6f2919812c4424b5d181c212de12fd10f1 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Wed, 15 Jun 2022 16:30:09 -0500 Subject: [PATCH] Modyfing tweets for filtering user names with id changed. --- Socialmetrica.package/NitterUser.class/instance/tweets.st | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Socialmetrica.package/NitterUser.class/instance/tweets.st b/Socialmetrica.package/NitterUser.class/instance/tweets.st index 551f705..ea8a4df 100644 --- a/Socialmetrica.package/NitterUser.class/instance/tweets.st +++ b/Socialmetrica.package/NitterUser.class/instance/tweets.st @@ -33,12 +33,8 @@ tweets subcollection := self messages select: [ :each | (each authorId = '1506282884746952707') or: [ each authorId = self id ] ] ]. - (self userName ~= 'FranciaMarquezM' and: [ self userName ~= 'sandralajas' ]) - ifTrue: [ (self userName ~= 'IBetancourtCol' and: [ self userName ~= 'sergio_fajardo' ]) - ifTrue: [ (self userName ~= 'ingrodolfohdez' and: [ self userName ~= 'CastilloMarelen' ]) - ifTrue: [ subcollection := self messages select: [ :each | each authorId = self id ]] ] - - ]. +(#('FranciaMarquezM' 'sandralajas' 'IBetancourtCol' 'sergio_fajardo' 'ingrodolfohdez' 'CastilloMarelen') includes: self userName) + ifFalse: [ subcollection := self messages select: [ :each | each authorId = self id ]]. ^ TweetsCollection new messages: subcollection; yourself \ No newline at end of file