commits
Moves the NiceDiff type to the shared types package.
This now allows for a more organized template structure. All templates
can now be accessed via "parent/child" paths, and are templated atop
the layouts/*.html files.
The layout files themselves are modular and can be included in each
other. The only caveat is layout/*.html NEED to define their own
template names like so:
{{ define "base" }}
The other page templates do not (and musn't) define their own template.
This reverts commit 510bb2d20c7ddef4b5ed215a3194f60a11ca3cc6.
If last time_us is older than a week, we discard it and start over.
This also refreshes the saved last time_us in the database.
As much as possible. The atproto libs aren't themselves consistent about this.
* lexicon: add sh.tangled.knot.policy
* i ran lexgen
* i ran nix fmt
---------
Co-authored-by: Akshay <nerdy@peppe.rs>
When the knot is initialized, the h.init channel is closed signalling
the Jetstream watcher to begin, with the owner DID in filter. There's no
null filter so starting it without any DIDs will give us events for all
DIDs. /init also checks if h.knotInitialized is true, and will 409
Conflict if /init is called again.
PUT /user is similar, but will only trigger a call to UpdateDids.
This now allows for a more organized template structure. All templates
can now be accessed via "parent/child" paths, and are templated atop
the layouts/*.html files.
The layout files themselves are modular and can be included in each
other. The only caveat is layout/*.html NEED to define their own
template names like so:
{{ define "base" }}
The other page templates do not (and musn't) define their own template.
When the knot is initialized, the h.init channel is closed signalling
the Jetstream watcher to begin, with the owner DID in filter. There's no
null filter so starting it without any DIDs will give us events for all
DIDs. /init also checks if h.knotInitialized is true, and will 409
Conflict if /init is called again.
PUT /user is similar, but will only trigger a call to UpdateDids.