about summary refs log tree commit diff
path: root/src/micropub/post.rs
Commit message (Collapse)AuthorAgeFilesLines
* Appease rustfmt, clippy and cargo checkVika2021-07-291-51/+65
|
* Respect Link: headers when sending webmentionsVika2021-07-281-4/+32
|
* Fixed security hole where other people could delete YOUR posts. Yes, yours. ↵Vika Shleina2021-07-211-0/+25
| | | | You're welcome.
* Relaxed anti-takeover URL check to simply not place redirects at foreign URLsVika Shleina2021-07-191-8/+3
|
* make clippy happyVika Shleina2021-07-191-5/+5
|
* Make clippy happyVika2021-05-171-6/+6
|
* Make rustfmt happyVika2021-05-171-196/+428
|
* Refactoring, easter egg, healthcheck endpoint, support for rel= indieweb ↵Vika2021-05-171-3/+4
| | | | APIs and preparation for onboarding
* More descriptive error handling and more descriptive TODOsVika2021-05-091-9/+13
|
* Added support for more default feeds, added a feed for vCardsVika2021-05-091-15/+42
|
* Fixed parsing the reply context for webmentions if there is no webmention ↵Vika2021-05-091-1/+19
| | | | endpoint
* Add a note about a possible optimization once the MF2 parser is readyVika2021-05-061-0/+3
|
* Deduplicated the fetched posts to save on bandwidth and timeVika2021-05-061-2/+8
|
* Turns out assert!() can have a second argument with a panic reason. Cool!Vika2021-05-061-19/+16
|
* Added post-processing of new postsVika2021-05-061-6/+143
| | | | | | | | | | | | | This launches a background task to handle: - Downloading reply contexts (requires an MF2 parser, doesn't work yet) - Syndicating the post (currently no syndication targets are defined) - Sending WebSub notifications if a hub is present (WIP) - Sending webmentions (ok this one is fully implemented... I hope!) This background task should not impact processing times and should never conflict with futher updates of a post, since the database is guaranteed to be fully atomic. Inside of the task, you can run long asynchronous fetching and stuff, just don't block the whole thread.
* Clippy lintsVika2021-05-041-8/+8
|
* Made StorageErrors directly convertible into Micropub JSON responsesVika2021-05-041-3/+3
|
* Refactored the database module and its testsVika2021-05-041-1/+0
|
* Initial commitVika2021-05-041-0/+433
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!!!