From f8cb78d31c6e78db4aa4ce1784487d3f01a77725 Mon Sep 17 00:00:00 2001 From: Andrii Nester Date: Tue, 19 Jul 2022 14:28:09 +0300 Subject: [PATCH] Revert "Update timeline and timeline_settings from v8 to v9" This reverts commit c132108aeb1b1d8e731700d0b8e0afca17f5ed18. --- src/context.cc | 3 ++- src/timeline_uploader.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/context.cc b/src/context.cc index 55d7d44324..a95c9dbba6 100644 --- a/src/context.cc +++ b/src/context.cc @@ -1832,9 +1832,10 @@ void Context::onTimelineUpdateServerSettings(Poco::Util::TimerTask&) { // NOLIN apitoken = user_->APIToken(); } + // Not implemented in v9 as of 12.05.2017 HTTPRequest req; req.host = urls::TimelineUpload(); - req.relative_url = "/api/v9/timeline_settings"; + req.relative_url = "/api/v8/timeline_settings"; req.payload = json; req.basic_auth_username = apitoken; req.basic_auth_password = "api_token"; diff --git a/src/timeline_uploader.cc b/src/timeline_uploader.cc index 71e51407ac..117f348d3e 100644 --- a/src/timeline_uploader.cc +++ b/src/timeline_uploader.cc @@ -84,9 +84,10 @@ error TimelineUploader::upload(TimelineBatch *batch) { batch->DesktopID()); logger().trace(json); + // Not implemented in v9 as of 12.05.2017 HTTPRequest req; req.host = urls::TimelineUpload(); - req.relative_url = "/api/v9/timeline"; + req.relative_url = "/api/v8/timeline"; req.payload = json; req.basic_auth_username = batch->APIToken(); req.basic_auth_password = "api_token";