mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Don't mangle bot's display name
This commit is contained in:
parent
03da01423d
commit
2f488bd9e3
1 changed files with 5 additions and 3 deletions
|
@ -321,9 +321,11 @@ TimelineItem::generateBody(const QString &userid, const QString &body)
|
|||
{
|
||||
auto sender = userid;
|
||||
|
||||
// TODO: Fix this by using a UserId type.
|
||||
if (userid.split(":")[0].split("@").size() > 1)
|
||||
sender = userid.split(":")[0].split("@")[1];
|
||||
if (userid.startsWith("@")) {
|
||||
// TODO: Fix this by using a UserId type.
|
||||
if (userid.split(":")[0].split("@").size() > 1)
|
||||
sender = userid.split(":")[0].split("@")[1];
|
||||
}
|
||||
|
||||
QString userContent("<span style=\"color: #171717\"> %1 </span>");
|
||||
QString bodyContent("<span style=\"color: #171717;\"> %1 </span>");
|
||||
|
|
Loading…
Reference in a new issue