fix(postgres): accept_note returns ThoughtId via SELECT after INSERT

This commit is contained in:
2026-05-16 02:48:52 +02:00
parent 0d43d0adb9
commit 98e96b306a
3 changed files with 45 additions and 7 deletions

View File

@@ -103,8 +103,8 @@ impl ActivityPubRepository for TestApRepo {
_content_warning: Option<String>,
_visibility: &str,
_in_reply_to: Option<&str>,
) -> Result<(), DomainError> {
Ok(())
) -> Result<ThoughtId, DomainError> {
Ok(ThoughtId::from_uuid(uuid::Uuid::new_v4()))
}
async fn apply_note_update(
&self,