From e73c6e4da31a4be31c74f639c7d8b90ffe626185 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Fri, 18 Mar 2016 13:02:49 +0300 Subject: [PATCH] [editor] Append #mapsme to notes created from withing the app --- editor/server_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/server_api.cpp b/editor/server_api.cpp index 7d4f00f552..fad349603c 100644 --- a/editor/server_api.cpp +++ b/editor/server_api.cpp @@ -106,7 +106,7 @@ void ServerApi06::CloseChangeSet(uint64_t changesetId) const uint64_t ServerApi06::CreateNote(ms::LatLon const & ll, string const & message) const { CHECK(!message.empty(), ("Note content should not be empty.")); - string const params = "?lat=" + strings::to_string_dac(ll.lat, 7) + "&lon=" + strings::to_string_dac(ll.lon, 7) + "&text=" + UrlEncode(message); + string const params = "?lat=" + strings::to_string_dac(ll.lat, 7) + "&lon=" + strings::to_string_dac(ll.lon, 7) + "&text=" + UrlEncode(message + " #mapsme"); OsmOAuth::Response const response = m_auth.Request("/notes" + params, "POST"); if (response.first != OsmOAuth::HTTP::OK) MYTHROW(ErrorAddingNote, ("Could not post a new note:", response));