mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
@@ -1147,7 +1147,7 @@ void Editor::CreateNote(ms::LatLon const & latLon, FeatureID const & fid,
|
|||||||
{
|
{
|
||||||
case NoteProblemType::PlaceDoesNotExist:
|
case NoteProblemType::PlaceDoesNotExist:
|
||||||
{
|
{
|
||||||
sstr << "The place has gone or never existed. A user of Organic Maps application has reported "
|
sstr << "The place has gone or never existed. A CoMaps user reported "
|
||||||
"that the POI was visible on the map (see snapshot date below), but was not found "
|
"that the POI was visible on the map (see snapshot date below), but was not found "
|
||||||
"on the ground.\n";
|
"on the ground.\n";
|
||||||
auto const features = m_features.Get();
|
auto const features = m_features.Get();
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ uint64_t ServerApi06::CreateNote(ms::LatLon const & ll, std::string const & mess
|
|||||||
CHECK(!message.empty(), ("Note content should not be empty."));
|
CHECK(!message.empty(), ("Note content should not be empty."));
|
||||||
std::string const params = "?lat=" + strings::to_string_dac(ll.m_lat, 7) +
|
std::string const params = "?lat=" + strings::to_string_dac(ll.m_lat, 7) +
|
||||||
"&lon=" + strings::to_string_dac(ll.m_lon, 7) +
|
"&lon=" + strings::to_string_dac(ll.m_lon, 7) +
|
||||||
"&text=" + url::UrlEncode(message + " #organicmaps " + OMIM_OS_NAME);
|
"&text=" + url::UrlEncode(message + " #CoMaps " + OMIM_OS_NAME);
|
||||||
OsmOAuth::Response const response = m_auth.Request("/notes" + params, "POST");
|
OsmOAuth::Response const response = m_auth.Request("/notes" + params, "POST");
|
||||||
if (response.first != OsmOAuth::HTTP::OK)
|
if (response.first != OsmOAuth::HTTP::OK)
|
||||||
MYTHROW(ErrorAddingNote, ("Could not post a new note:", response));
|
MYTHROW(ErrorAddingNote, ("Could not post a new note:", response));
|
||||||
|
|||||||
Reference in New Issue
Block a user