Commit Briefs
lemmy: implement client-side community, post caching
Servers now provide a Cache-Control header in the HTTP response, so we can use that for some dead simple caching.
fs: let it compile
yeah...
lemmy/fs: KISS. Keep posts and comments as files in the same dir
Kinda like NNTP.
cmd/Lemmy: show real usernames, render comment threads
To make this easier and smaller, we now use the lemmy package directly rather than the filesystem interface. Can't think of a nice way to use that filesystem (yet?).
lemmy: decode person, counts from API responses
We want these so we can render the info easily in clients
lemmy: decode published, updated times
Now that the Lemmy API returns nice timestamps, it's all done automatically by Go's JSON package.
lemmy: start decoding users in API responses
This commit adds tests too as it's starting to get a bit trickier.
Rework, move filesystem into its own package
Major rework which keeps Stat, Read and ReadDir away from the filesystem tree and more to the file. The fs package implements extra functionality that doesn't really have anything to do with the core package. It also does not need to know how the core lemmy package is implemented to do anything, so may as well enforce the boundary explicitly.
Only cache communities in filesystem
This keeps things simpler