From cb8bdbbaee8c60347c18b6f82d191273a2ad6481 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Wed, 25 May 2022 16:23:15 -0500 Subject: [PATCH] Creating nitter user parsing as tiddler. --- .../NitterUser.class/instance/asTiddler.st | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Socialmetrica.package/NitterUser.class/instance/asTiddler.st diff --git a/Socialmetrica.package/NitterUser.class/instance/asTiddler.st b/Socialmetrica.package/NitterUser.class/instance/asTiddler.st new file mode 100644 index 0000000..bb7d609 --- /dev/null +++ b/Socialmetrica.package/NitterUser.class/instance/asTiddler.st @@ -0,0 +1,16 @@ +accessing +asTiddler + + | tempDict tiddler | + tiddler := Tiddler new. + tiddler customFields. + tempDict := self asDictionary. + tempDict keysAndValuesDo: [ :key :value | + tiddler customFields at: key put: value + ]. + ^ tiddler + created; + title: (tiddler customFields at: 'profile-card-fullname'); + type: 'text/vnd.tiddlywiki'; + text: + '@<$transclude field="profile-card-username"/>
<$transclude field="profile-bio"/>'. \ No newline at end of file