From 39ddd3689aa4ef38580ea90087e1e204b55fcfc7 Mon Sep 17 00:00:00 2001 From: Vika Date: Sat, 22 Jul 2023 12:24:08 +0300 Subject: 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) --- kittybox-rs/src/database/memory.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kittybox-rs/src/database/memory.rs') 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 { -- cgit 1.4.1