Temporal bugfix to deal with Twitter changes in user id.
This commit is contained in:
parent
419aa176ab
commit
21b4f432c4
@ -1,6 +1,15 @@
|
||||
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'
|
||||
ifFalse: [
|
||||
subcollection := self messages select: [ :each | each authorId = self id ] ]
|
||||
ifTrue: [
|
||||
subcollection := self messages
|
||||
select: [ :each | (each authorId = '1510420950801698826') or: [ each authorId = self id ] ]
|
||||
].
|
||||
^ TweetsCollection new
|
||||
messages: (self messages select: [ :each | each authorId = self id ]);
|
||||
messages: subcollection;
|
||||
yourself
|
Loading…
Reference in New Issue
Block a user