diff --git a/src/apps/web/WebData.h b/src/apps/web/WebData.h index 7c651e5..5e49a97 100644 --- a/src/apps/web/WebData.h +++ b/src/apps/web/WebData.h @@ -280,19 +280,6 @@ struct Event { output.text = std::move(content); output.url = std::move(firstUrl); -/* - if (withLink && firstUrl.size()) { - while (content.size() && isspace(content.back())) content.pop_back(); - if (content.empty()) { - content = firstUrl; - textAbbrev(content, 100); - templarInternal::htmlEscape(content, true); - } - - return std::string("" + content + ""; - } - */ - return output; } @@ -543,7 +530,7 @@ struct EventThread { } - std::string getSummary() { + std::string getThreadTitle() { if (!rootEventId.size()) return ""; auto p = eventCache.find(rootEventId); diff --git a/src/apps/web/WebReader.cpp b/src/apps/web/WebReader.cpp index 7720388..99f4c08 100644 --- a/src/apps/web/WebReader.cpp +++ b/src/apps/web/WebReader.cpp @@ -208,7 +208,7 @@ HTTPResponse WebServer::generateReadResponse(lmdb::txn &txn, Decompressor &decom if (u.path.size() == 2) { EventThread et(txn, decomp, decodeBech32Simple(u.path[1])); body = et.render(txn, decomp, userCache); - title = et.getSummary(); + title = et.getThreadTitle(); } else if (u.path.size() == 3) { if (u.path[2] == "reply") { auto ev = Event::fromIdExternal(txn, u.path[1]);