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."
|
|
|
|
self userName = 'FranciaMarquezM'
|
|
|
|
ifFalse: [
|
|
|
|
subcollection := self messages select: [ :each | each authorId = self id ] ]
|
|
|
|
ifTrue: [
|
|
|
|
subcollection := self messages
|
|
|
|
select: [ :each | (each authorId = '1510420950801698826') or: [ 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
|