Nitter: Improving tweets preview, metadata and collections management.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-01 20:10:12 -05:00
parent 9fd074b572
commit 6fba4b8186
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,7 @@
accessing
exportInto: aFolder
| file |
file := aFolder / self id, 'ston'.
^ MarkupFile
exportAsFileOn: file
containing: (STON toStringPretty: self)

View File

@ -3,5 +3,6 @@ store
| localFolder parameters | | localFolder parameters |
parameters := self queryParameters . parameters := self queryParameters .
parameters class = NitterUser ifFalse: [ ^ self ]. parameters class = NitterUser ifFalse: [ ^ self ].
^ localFolder := (self dataStore / parameters userName) ensureCreateDirectory. localFolder := (self dataStore / parameters userName) ensureCreateDirectory.
self tweets do: [:each | each exportInto: localFolder ].
^ localFolder