mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +02:00
Don't make links in txn history for highfidelity and marketplace
This commit is contained in:
parent
5ce768f402
commit
1dde25e38f
1 changed files with 5 additions and 1 deletions
|
@ -137,10 +137,14 @@ QString hfcString(const QJsonValue& sentValue, const QJsonValue& receivedValue)
|
|||
return result;
|
||||
}
|
||||
static const QString USER_PAGE_BASE_URL = NetworkingConstants::METAVERSE_SERVER_URL().toString() + "/users/";
|
||||
static const QStringList KNOWN_USERS(QStringList() << "highfidelity" << "marketplace");
|
||||
QString userLink(const QString& username) {
|
||||
if (username.isEmpty()) {
|
||||
if (username.isEmpty() ) {
|
||||
return QString("someone");
|
||||
}
|
||||
if (KNOWN_USERS.contains(username)) {
|
||||
return username;
|
||||
}
|
||||
return QString("<a href=\"%1%2\">%2</a>").arg(USER_PAGE_BASE_URL, username);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue