From c16f109067497c258f742f7273523206e0b1bac3 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sat, 14 May 2022 17:45:58 -0500 Subject: [PATCH] Bugfix: Tweets and avatar --- .../NitterUser.class/instance/avatarPicture.st | 4 ++-- Socialmetrica.package/NitterUser.class/instance/tweets.st | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st b/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st index 0f6e1a3..7607c5e 100644 --- a/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st +++ b/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st @@ -3,8 +3,8 @@ avatarPicture | response tempImage | response := ZnClient new url: (self profileImageUrl); get; response. response contentType = ZnMimeType imageJpeg - ifTrue: [ ^ (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ]. + ifTrue: [ tempImage := (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ]. response contentType = ZnMimeType imagePng - ifTrue: [ ^ (PNGReadWriter gtFromBuffer: response contents) asElement ]. + ifTrue: [ tempImage := (PNGReadWriter gtFromBuffer: response contents) asElement ]. tempImage on: Error do: [ ^ GtABContact new avatar ]. ^ tempImage value asElement . \ No newline at end of file diff --git a/Socialmetrica.package/NitterUser.class/instance/tweets.st b/Socialmetrica.package/NitterUser.class/instance/tweets.st index 5990746..ecc33fc 100644 --- a/Socialmetrica.package/NitterUser.class/instance/tweets.st +++ b/Socialmetrica.package/NitterUser.class/instance/tweets.st @@ -13,7 +13,7 @@ tweets subcollection := self messages select: [ :each | (each authorId = '1502504562984374276') or: [ each authorId = self id ] ] ]. - (self userName ~= 'FranciaMarquezM' or: [ self userName = 'sandralajas' ]) + (self userName ~= 'FranciaMarquezM' or: [ self userName ~= 'sandralajas' ]) ifFalse: [ subcollection := self messages select: [ :each | each authorId = self id ] ]. ^ TweetsCollection new messages: subcollection;