diff options
author | Vika <vika@fireburn.ru> | 2023-07-22 12:24:08 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-22 12:24:08 +0300 |
commit | 39ddd3689aa4ef38580ea90087e1e204b55fcfc7 (patch) | |
tree | dfdef357c0e97543d8957c4d700da670081fe018 /kittybox-rs/src/database/memory.rs | |
parent | 6a88707be1651f457df0960ec0ddc78dadf8ed3a (diff) | |
download | kittybox-39ddd3689aa4ef38580ea90087e1e204b55fcfc7.tar.zst |
database: add "add_or_update_webmention" operation
This is an operation that atomically adds or updates a webmention cite attached to a post. This is used so a database backend can optimize for it (for example, using a transaction or shifting the JSON modification operation to the database)
Diffstat (limited to 'kittybox-rs/src/database/memory.rs')
-rw-r--r-- | kittybox-rs/src/database/memory.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kittybox-rs/src/database/memory.rs b/kittybox-rs/src/database/memory.rs index 26d3095..6339e7a 100644 --- a/kittybox-rs/src/database/memory.rs +++ b/kittybox-rs/src/database/memory.rs @@ -226,6 +226,11 @@ impl Storage for MemoryStorage { todo!() } + #[allow(unused_variables)] + async fn add_or_update_webmention(&self, target: &str, mention_type: kittybox_util::MentionType, mention: serde_json::Value) -> Result<()> { + todo!() + } + } impl Default for MemoryStorage { |