Hide "About" section for instances that don't have it filled out
https://twipped.social/about
This commit is contained in:
parent
b402239262
commit
b76128f82b
|
@ -37,10 +37,10 @@ void about_route(const httplib::Request& req, httplib::Response& res) {
|
|||
}),
|
||||
}),
|
||||
|
||||
Element("details", {{"class", "about_page-about"}, {"open", ""}}, {
|
||||
!extended_description.str.empty() ? Element("details", {{"class", "about_page-about"}, {"open", ""}}, {
|
||||
Element("summary", {"About"}),
|
||||
preprocess_html(req, server, {}, std::move(extended_description)),
|
||||
}),
|
||||
}) : Node(""),
|
||||
|
||||
Element("details", {{"class", "about_page-rules"}}, {
|
||||
Element("summary", {"Rules"}),
|
||||
|
|
Loading…
Reference in New Issue