fix: don't show "ask about this" if owner has questions disabled

This commit is contained in:
trisua 2025-07-13 18:43:36 -04:00
parent 2c83ed3d9d
commit 73d8e9ab49

View file

@ -357,6 +357,7 @@
(span (span
(text "BlueSky"))) (text "BlueSky")))
(text "{%- endif %}") (text "{%- endif %}")
(text "{% if owner.settings.enable_questions -%}")
(a (a
("class" "button") ("class" "button")
("href" "/@{{ owner.username }}?asking_about={{ post.id }}") ("href" "/@{{ owner.username }}?asking_about={{ post.id }}")
@ -364,6 +365,7 @@
(span (span
(str (text "communities:label.ask_about_this")))) (str (text "communities:label.ask_about_this"))))
(text "{%- endif %}") (text "{%- endif %}")
(text "{%- endif %}")
(text "{% if user and user.id != post.owner -%}") (text "{% if user and user.id != post.owner -%}")
(b (b
("class" "title") ("class" "title")