about summary refs log tree commit diff
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Moved integration tests and allowed the binary to use file backendVika2021-09-261-5/+45
| | | | | | Now the Redis dependencies are optional and only required if you want to test the backend or actually use it in production. The app displays a hint if you try to launch with an unsupported backend.
* Added Prometheus instrumentationVika2021-08-061-0/+8
| | | | | | I need to instrument the mobc library used for the Redis connection pool, but that can be done later since I am somewhat tired. I don't remember how much I've worked and I need a break... >.<
* Appease rustfmt, clippy and cargo checkVika2021-07-291-5/+12
|
* Added CORS middlewareVika2021-07-271-0/+2
| | | | | This prevents Micropub requests fired from web apps on other domains from being blocked by overzealous browsers.
* Added an internal token mechanismVika Shleina2021-07-271-0/+4
| | | | | | | | The internal token is a shared secret that can update and delete any posts stored in the database. It is intended for use in webmention endpoints to update posts with latest webmentions. Please keep it safe.
* Fixed security hole where other people could delete YOUR posts. Yes, yours. ↵Vika Shleina2021-07-211-0/+42
| | | | You're welcome.
* Relaxed anti-takeover URL check to simply not place redirects at foreign URLsVika Shleina2021-07-191-1/+4
|
* make clippy happyVika Shleina2021-07-191-1/+1
|
* Make rustfmt happyVika2021-05-171-62/+149
|
* Onboarding - initial featureVika2021-05-171-1/+2
|
* Fixed failing tests again - forgot to unwrapVika2021-05-171-1/+1
|
* Fixed failing testsVika2021-05-171-0/+2
|
* Refactoring, easter egg, healthcheck endpoint, support for rel= indieweb ↵Vika2021-05-171-4/+11
| | | | APIs and preparation for onboarding
* Added a frontend to the application. TODO: Login, alternative themes, ↵Vika2021-05-091-37/+4
| | | | built-in Micropub capabilities when logged in
* Added rudimentary caching to IndieAuth middlewareVika2021-05-051-2/+2
|
* Moved the client to /micropub/clientVika2021-05-051-4/+5
|
* Refactored the Redis instance spawning in tests to automatically kill RedisVika2021-05-051-27/+15
|
* Removed the in-memory database, it's dragging me downVika2021-05-051-11/+0
|
* Moved the Redis spawner to the Redis module where it belongs, refactored ↵Vika2021-05-051-36/+61
| | | | tests to use the Redis database instead of a fake one
* Clippy lintsVika2021-05-041-2/+2
|
* Refactored the database module and its testsVika2021-05-041-56/+44
|
* Initial commitVika2021-05-041-0/+276
Working features: - Sending posts from the database - Reading posts from the database - Responding with MF2-JSON (only in debug mode!) - Not locking the database when not needed - All database actions are atomic (except for a small race where UIDs can clash, but that's not gonna happen often) TODOs: - Send webmentions - Send syndication requests - Send WebSub notifications - Make tombstones for deleted posts (update adding dt-deleted) - Rich reply contexts (possibly on the frontend part?) - Frontend? - Fix UID race Code maintenance TODOs: - Split the database module - Finish implementing the in-memory test database - Make RedisDatabase unit tests launch their own Redis instances (see redis-rs/tests/support/mod.rs for more info) - Write more unit-tests!!!