Modifying messages decalration for twitter and nitter user.

This commit is contained in:
ruidajo 2022-06-09 15:12:36 -05:00
parent 68333ff0c0
commit 3d7cc8110c
3 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,5 @@
accessing accessing
getRemoteMessagesFromHtml getRemoteMessagesFromHtml
^ self messages: (self collectRawTweetsUpToPage: 1) self messages: (self collectRawTweetsUpToPage: 1).
^ self messages

View File

@ -0,0 +1,7 @@
accessing
messages
messages ifNil: [ ^ messages := TweetsCollection new ].
messages ifEmpty: [ self getRemoteMessagesFromHtml ].
self config isEmpty ifTrue: [ ^ messages ].
^ messages select: [ :message | message created between: self reportingPeriod start and: self reportingPeriod end ]

View File

@ -1,5 +1,4 @@
accessing accessing
messages messages
messages ifNil: [ ^ messages := TweetsCollection new ].
self config isEmpty ifTrue: [ ^ messages ]. ^ self subclassResponsibility
^ messages select: [ :message | message created between: self reportingPeriod start and: self reportingPeriod end ]