add: post drafts
fix: allow question sender to view question
This commit is contained in:
parent
24162573ee
commit
f6cbeb9bd8
22 changed files with 642 additions and 100 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue