Modifying nitter user parse as dictionary and as tiddler.

This commit is contained in:
ruidajo 2022-05-31 13:08:05 -05:00
parent cb8bdbbaee
commit 5fdad7fa69
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ asDictionary
| tweets | | tweets |
tweets := self messages. tweets := self messages.
^ { 'profile-card-avatar' -> self profileImageFile fullName. ^ { 'profile-card-avatar' -> self profileImageFile fullName.
'profile-card-avatar-url' -> self profileImageUrl.
'profile-card-fullname' -> self name . 'profile-card-fullname' -> self name .
'profile-card-username' -> self userName . 'profile-card-username' -> self userName .
'profile-bio' -> self profileBio. 'profile-bio' -> self profileBio.

View File

@ -10,7 +10,7 @@ asTiddler
]. ].
^ tiddler ^ tiddler
created; created;
title: (tiddler customFields at: 'profile-card-fullname'); title: (tiddler customFields at: 'profile-card-username');
type: 'text/vnd.tiddlywiki'; type: 'text/vnd.tiddlywiki';
text: text:
'@<$transclude field="profile-card-username"/><br/><$transclude field="profile-bio"/>'. '<<image-card "', self profileImageUrl, '" title:', ($' asString), '<$transclude field="profile-card-fullname"/>', ($' asString), 'text:', ($' asString), '<$transclude field="profile-bio"/>', ($' asString), 'footer:', ($' asString), '@<$transclude field="profile-card-username"/>', ($' asString), 'align:"center" pos:"top">>'.