Hide "About" section for instances that don't have it filled out

https://twipped.social/about
This commit is contained in:
blankie 2023-11-25 01:51:42 +11:00
parent b402239262
commit b76128f82b
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 2 deletions

View File

@ -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"}),