From bc95f0aaf09993ba3f52009eb148164efefb93ce Mon Sep 17 00:00:00 2001 From: trisua Date: Sun, 13 Apr 2025 12:20:55 -0400 Subject: [PATCH] fix: show community in global question timelines --- crates/app/src/public/html/communities/questions.html | 2 +- crates/app/src/public/html/components.html | 4 ++-- crates/core/src/database/posts.rs | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/app/src/public/html/communities/questions.html b/crates/app/src/public/html/communities/questions.html index 55bbe72..a26f0f6 100644 --- a/crates/app/src/public/html/communities/questions.html +++ b/crates/app/src/public/html/communities/questions.html @@ -20,7 +20,7 @@
{% for question in feed %} - {{ components::global_question(question=question, can_manage_questions=can_manage_questions) }} + {{ components::global_question(question=question, can_manage_questions=can_manage_questions, show_community=false) }} {% endfor %} {{ components::pagination(page=page, items=feed|length) }} diff --git a/crates/app/src/public/html/components.html b/crates/app/src/public/html/components.html index 872fc19..f815249 100644 --- a/crates/app/src/public/html/components.html +++ b/crates/app/src/public/html/components.html @@ -699,10 +699,10 @@ is_global=false) -%} } {%- endmacro %} {% macro global_question(question, can_manage_questions=false, -secondary=false) -%} +secondary=false, show_community=true) -%}
{{ components::question(question=question[0], owner=question[1], - show_community=false) }} + show_community=show_community) }}
Result> { 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)))