All the discussions recently about json made me want to have a go at importing a specific topic, latest posts and posts by specific powerUsers. I set out to try and get something working for an individual topic.
It may be ugly but I am putting it here for guidance, on how to proceed and improve.
Discourse Thread to Tiddler.json (1.9 KB)
Current state allows for input of the topic id and then parses the json to reproduce a minimal output of the topic discussion as <<parsedText>>.
Limitations:
- 20 replies max
- until I figure out how to check last
post_stream.postsversuspost_stream.streamand fetch additional posts to append.
- until I figure out how to check last
- No User Icon yet, needs a search-replace and concatenation
-
{{{ [["/user_avatar/talk.tiddlywiki.org/username/{size}/254_2.png"]search-replace:g:regexp[{size}],[45]] }}}append tohttps://talk.tiddlywiki.org/
-
- Doesn’t create a tiddler for the topic due to struggles with
$action-createtiddler - Needs better layout and css


