From 25d004f7b3c1fbac2ea58a7f24c2d7c0a5590d69 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 18 Sep 2025 10:25:23 +0200 Subject: [PATCH] Add OM version to uploaded OSM notes Signed-off-by: Alexander Borsuk --- libs/editor/server_api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/editor/server_api.cpp b/libs/editor/server_api.cpp index e2268e1b4..e9e498b05 100644 --- a/libs/editor/server_api.cpp +++ b/libs/editor/server_api.cpp @@ -8,6 +8,7 @@ #include "base/math.hpp" #include "base/string_utils.hpp" #include "base/timer.hpp" +#include "platform/platform.hpp" #include #include @@ -121,7 +122,7 @@ uint64_t ServerApi06::CreateNote(ms::LatLon const & ll, std::string const & mess CHECK(!message.empty(), ("Note content should not be empty.")); std::string const params = "?lat=" + strings::to_string_dac(ll.m_lat, 7) + "&lon=" + strings::to_string_dac(ll.m_lon, 7) + - "&text=" + url::UrlEncode(message + " #CoMaps " + OMIM_OS_NAME); + "&text=" + url::UrlEncode(message + " #CoMaps " + OMIM_OS_NAME + " " + GetPlatform().Version()); 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));