add: post drafts

fix: allow question sender to view question
This commit is contained in:
trisua 2025-05-17 19:57:09 -04:00
parent 24162573ee
commit f6cbeb9bd8
22 changed files with 642 additions and 100 deletions

View file

@ -918,10 +918,10 @@ impl DataManager {
}
}
/// Create a new journal entry in the database.
/// Create a new post in the database.
///
/// # Arguments
/// * `data` - a mock [`JournalEntry`] object to insert
/// * `data` - a mock [`Post`] object to insert
pub async fn create_post(&self, mut data: Post) -> Result<usize> {
// check values (if this isn't reposting something else)
let is_reposting = if let Some(ref repost) = data.context.repost {