From 1dde25e38fae02d0c6da1b77ee9f6d8b5f876dc5 Mon Sep 17 00:00:00 2001 From: David Kelly Date: Wed, 17 Jan 2018 16:51:38 -0800 Subject: [PATCH] Don't make links in txn history for highfidelity and marketplace --- interface/src/commerce/Ledger.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/interface/src/commerce/Ledger.cpp b/interface/src/commerce/Ledger.cpp index 50ea6629cf..7686ecfc46 100644 --- a/interface/src/commerce/Ledger.cpp +++ b/interface/src/commerce/Ledger.cpp @@ -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("%2").arg(USER_PAGE_BASE_URL, username); }