fix: show community in global question timelines
This commit is contained in:
parent
063e33899e
commit
bc95f0aaf0
3 changed files with 3 additions and 4 deletions
|
@ -104,7 +104,6 @@ impl DataManager {
|
|||
/// Get the question of a given post.
|
||||
pub async fn get_post_question(&self, post: &Post) -> Result<Option<(Question, User)>> {
|
||||
if post.context.answering != 0 {
|
||||
dbg!(&post.context.answering);
|
||||
let question = self.get_question_by_id(post.context.answering).await?;
|
||||
let user = self.get_user_by_id_with_void(question.owner).await?;
|
||||
Ok(Some((question, user)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue