From 8b39ca5a2ea4bbaa80acd8736b878008655822ed Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 26 Aug 2014 18:52:21 +0000 Subject: [PATCH] added name and location to certificate link, to ease display in web forums, html pages etc. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7495 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/RetroShareLink.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/gui/RetroShareLink.cpp b/retroshare-gui/src/gui/RetroShareLink.cpp index 64ba7258d..0191587ae 100644 --- a/retroshare-gui/src/gui/RetroShareLink.cpp +++ b/retroshare-gui/src/gui/RetroShareLink.cpp @@ -372,6 +372,8 @@ bool RetroShareLink::createCertificate(const RsPeerId& ssl_id) _type = TYPE_CERTIFICATE; _radix = QString::fromUtf8(rsPeers->GetRetroshareInvite(ssl_id,false).c_str()); + _name = QString::fromUtf8(detail.name.c_str()); + _location = QString::fromUtf8(detail.location.c_str()); _radix.replace("\n",""); std::cerr << "Found radix = " << _radix.toStdString() << std::endl; @@ -743,6 +745,8 @@ QString RetroShareLink::toString() const url.setScheme(RSLINK_SCHEME); url.setHost(HOST_CERTIFICATE) ; urlQuery.addQueryItem(CERTIFICATE_RADIX, _radix); + urlQuery.addQueryItem(CERTIFICATE_NAME, _name); + urlQuery.addQueryItem(CERTIFICATE_LOCATION, _location); break; }