diff --git a/Socialmetrica.package/NitterUser.class/instance/id.st b/Socialmetrica.package/NitterUser.class/instance/id.st index 30d492e..ee51d0d 100644 --- a/Socialmetrica.package/NitterUser.class/instance/id.st +++ b/Socialmetrica.package/NitterUser.class/instance/id.st @@ -1,3 +1,3 @@ accessing id - ^ id ifNil: [ id := (self profileImageUrl segments detect: [ :each | each isAllDigits ]) ] \ No newline at end of file + ^ id ifNil: [ id := (self profileImageUrl asUrl segments select: [ :each | each isAllDigits ]) first.] \ No newline at end of file diff --git a/Socialmetrica.package/NitterUser.class/instance/profileImageUrl.st b/Socialmetrica.package/NitterUser.class/instance/profileImageUrl.st index 7b64f58..304841c 100644 --- a/Socialmetrica.package/NitterUser.class/instance/profileImageUrl.st +++ b/Socialmetrica.package/NitterUser.class/instance/profileImageUrl.st @@ -1,4 +1,4 @@ accessing profileImageUrl ^ profileImageUrl ifNil: [ - profileImageUrl := ((self rssFeed xmlDocument xpath: '//image/url') stringValue copyReplaceAll: '%2F' with: '/') asUrl ] \ No newline at end of file + profileImageUrl := ((self rssFeed xmlDocument xpath: '//image/url') stringValue copyReplaceAll: '%2F' with: '/') ] \ No newline at end of file