Add left-to-right override to user display name

https://anarres.family/@alice@mk.nyaa.place
This commit is contained in:
blankie 2023-12-02 15:52:55 +11:00
parent f6908ee486
commit dfe629aa2b
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ static inline Element user_header(const httplib::Request& req, const std::string
Element("img", {{"class", "user_page-profile"}, {"alt", "User profile picture"}, {"loading", "lazy"}, {"src", account.avatar}}, {}),
}),
Element("span", {
Element("b", {preprocess_html(req, account.emojis, account.display_name)}), account.bot ? " (bot)" : "", " (@", account.acct(), ")", view_on_original,
// left-to-right override--thank https://anarres.family/@alice@mk.nyaa.place
Element("b", {preprocess_html(req, account.emojis, account.display_name)}), "\u202d", account.bot ? " (bot)" : "", " (@", account.acct(), ")", view_on_original,
Element("br"),
Element("br"), Element("b", {"Joined: "}), short_time(account.created_at),
Element("br"),