From 5fdad7fa69824200ecaa3ec083c4a38ff89bc0ab Mon Sep 17 00:00:00 2001 From: ruidajo Date: Tue, 31 May 2022 13:08:05 -0500 Subject: [PATCH] Modifying nitter user parse as dictionary and as tiddler. --- .../NitterUser.class/instance/asDictionary.st | 1 + Socialmetrica.package/NitterUser.class/instance/asTiddler.st | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Socialmetrica.package/NitterUser.class/instance/asDictionary.st b/Socialmetrica.package/NitterUser.class/instance/asDictionary.st index 225c373..86a5f99 100644 --- a/Socialmetrica.package/NitterUser.class/instance/asDictionary.st +++ b/Socialmetrica.package/NitterUser.class/instance/asDictionary.st @@ -4,6 +4,7 @@ asDictionary | tweets | tweets := self messages. ^ { 'profile-card-avatar' -> self profileImageFile fullName. + 'profile-card-avatar-url' -> self profileImageUrl. 'profile-card-fullname' -> self name . 'profile-card-username' -> self userName . 'profile-bio' -> self profileBio. diff --git a/Socialmetrica.package/NitterUser.class/instance/asTiddler.st b/Socialmetrica.package/NitterUser.class/instance/asTiddler.st index bb7d609..6024a2a 100644 --- a/Socialmetrica.package/NitterUser.class/instance/asTiddler.st +++ b/Socialmetrica.package/NitterUser.class/instance/asTiddler.st @@ -10,7 +10,7 @@ asTiddler ]. ^ tiddler created; - title: (tiddler customFields at: 'profile-card-fullname'); + title: (tiddler customFields at: 'profile-card-username'); type: 'text/vnd.tiddlywiki'; text: - '@<$transclude field="profile-card-username"/>
<$transclude field="profile-bio"/>'. \ No newline at end of file + '<', ($' asString), 'text:', ($' asString), '<$transclude field="profile-bio"/>', ($' asString), 'footer:', ($' asString), '@<$transclude field="profile-card-username"/>', ($' asString), 'align:"center" pos:"top">>'. \ No newline at end of file