Socialmetrica/Socialmetrica.package/NitterUser.class/instance/tweets.st

20 lines
811 B
Smalltalk
Raw Normal View History

2022-04-14 22:40:41 +00:00
accessing
tweets
| subcollection |
self messages ifEmpty: [ self getMessages ].
"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'
ifTrue: [
subcollection := self messages
select: [ :each | (each authorId = '1510420950801698826') or: [ each authorId = self id ] ]
].
2022-05-05 03:43:23 +00:00
self userName = 'sandralajas'
ifTrue: [
subcollection := self messages
select: [ :each | (each authorId = '1502504562984374276') or: [ each authorId = self id ] ]
].
(self userName ~= 'FranciaMarquezM' and: [ self userName ~= 'sandralajas' ])
ifTrue: [ subcollection := self messages select: [ :each | each authorId = self id ] ].
2022-04-14 22:40:41 +00:00
^ TweetsCollection new
messages: subcollection;
2022-04-14 22:40:41 +00:00
yourself