Merge fa1cf4a6d8
This commit is contained in:
commit
ac627f756c
@ -3,8 +3,8 @@ avatarPicture
|
|||||||
| response tempImage |
|
| response tempImage |
|
||||||
response := ZnClient new url: (self profileImageUrl); get; response.
|
response := ZnClient new url: (self profileImageUrl); get; response.
|
||||||
response contentType = ZnMimeType imageJpeg
|
response contentType = ZnMimeType imageJpeg
|
||||||
ifTrue: [ ^ (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ].
|
ifTrue: [ tempImage := (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ].
|
||||||
response contentType = ZnMimeType imagePng
|
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 on: Error do: [ ^ GtABContact new avatar ].
|
||||||
^ tempImage value asElement .
|
^ tempImage value asElement .
|
@ -13,7 +13,7 @@ tweets
|
|||||||
subcollection := self messages
|
subcollection := self messages
|
||||||
select: [ :each | (each authorId = '1502504562984374276') or: [ each authorId = self id ] ]
|
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 ] ].
|
ifFalse: [ subcollection := self messages select: [ :each | each authorId = self id ] ].
|
||||||
^ TweetsCollection new
|
^ TweetsCollection new
|
||||||
messages: subcollection;
|
messages: subcollection;
|
||||||
|
Loading…
Reference in New Issue
Block a user