Creating nitter user parsing as tiddler.
This commit is contained in:
parent
e9d8745818
commit
cb8bdbbaee
16
Socialmetrica.package/NitterUser.class/instance/asTiddler.st
Normal file
16
Socialmetrica.package/NitterUser.class/instance/asTiddler.st
Normal file
@ -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"/><br/><$transclude field="profile-bio"/>'.
|
Loading…
Reference in New Issue
Block a user