2022-04-14 22:40:41 +00:00
|
|
|
accessing
|
|
|
|
tweets
|
2022-05-03 13:32:10 +00:00
|
|
|
| subcollection |
|
2022-04-18 22:29:09 +00:00
|
|
|
self messages ifEmpty: [ self getMessages ].
|
2022-05-03 13:32:10 +00:00
|
|
|
"TO DO: It seems that Twitter changes the user id, which we thought was unchangeable. This deals with the detected changes so far."
|
2022-06-15 23:43:59 +00:00
|
|
|
|
|
|
|
subcollection := self messages
|
|
|
|
select: [ :each | self authorIds includes: each authorId ].
|
|
|
|
|
|
|
|
(#('FranciaMarquezM' 'sandralajas' 'IBetancourtCol' 'sergio_fajardo' 'ingrodolfohdez' 'CastilloMarelen') includes: self userName)
|
|
|
|
ifFalse: [ subcollection := self messages select: [ :each | each authorId = self id ]].
|
2022-04-14 22:40:41 +00:00
|
|
|
^ TweetsCollection new
|
2022-05-03 13:32:10 +00:00
|
|
|
messages: subcollection;
|
2022-04-14 22:40:41 +00:00
|
|
|
yourself
|