Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Revert "Update timeline and timeline_settings from v8 to v9"
Browse files Browse the repository at this point in the history
This reverts commit c132108.
  • Loading branch information
AndrewVebster committed Jul 19, 2022
1 parent 7f348ac commit f8cb78d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 2 additions & 1 deletion src/timeline_uploader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f8cb78d

Please sign in to comment.