Commit Graph

130 Commits

Author SHA1 Message Date
fc32e8ac0a
Add copy constructor for CURLWrapper.
The copy constructor does the same as the constructor. A new CURL handle is used
for the “copy”.
2020-03-20 13:49:20 +01:00
da1c2ba409
Handle more than one replacement in replace_parameter_in_uri().
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-12 12:12:31 +01:00
00056c224e
Update parameter replacements for Pleroma 2.0.0.
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-12 11:40:11 +01:00
854d2f67af
Updated Pleroma endpoints to version 2.0.0.
* v1::
  * pleroma_conversations_id_read
  * pleroma_accounts_id_scrobbles
  * pleroma_scrobble
  * pleroma_statuses_id_reactions_emoji
  * pleroma_statuses_id_reactions

* pleroma::
  * admin_users_nickname_toggle_activation
  * admin_users_permission_group_permission_group
  * admin_users_activate
  * admin_users_deactivate
  * admin_instances_instance_statuses
  * admin_statuses
  * admin_users_force_password_reset
  * admin_grouped_reports
  * admin_reports_id_notes
  * admin_reports_report_id_notes_id
  * admin_restart
  * admin_config_descriptions
  * admin_moderation_log
  * admin_reload_emoji
  * admin_users_confirm_email
  * admin_users_resend_confirm_email
  * admin_stats
  * emoji_packs
  * emoji_packs_name
  * emoji_packs_name_update_file
  * emoji_packs_name_update_metadata
  * emoji_packs_download_from
  * emoji_packs_list_from
  * emoji_packs_name_download_shared
2020-03-12 11:38:41 +01:00
ac07daddce
Make map of named entities into 2 columns.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-12 17:13:17 +01:00
3bbc24ba57
Decrease loops drastically in unescape_html().
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-02 15:02:19 +01:00
185ab91978
Rename buffer_mutex → _buffer_mutex.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-28 08:11:56 +01:00
deeff83410
Make some private members of CURLWrapper static.
All checks were successful
continuous-integration/drone/push Build is passing
replace_parameter_in_uri(), add_parameters_to_uri() and add_mime_part().
2020-01-26 08:50:05 +01:00
b82d779119
Use brace initialization for _stream_cancelled. 2020-01-26 04:10:59 +01:00
fe5ac46d52
Explicitly call CURLWrapper::set_useragent() in setup_curl(). 2020-01-26 03:51:32 +01:00
9523de8788
Mark buffer variables const.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-20 02:46:00 +01:00
c01ba95f5a
Remove useless else. 2020-01-16 18:20:37 +01:00
bdd328ac91
Remove useless const. 2020-01-16 18:19:47 +01:00
5e612210ef
Log proxy changes when debugging.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-16 18:17:29 +01:00
343fe2adca
Add unescape_html().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-15 19:09:43 +01:00
99f00e331a
Silence false-positive clang-tidy warning,
Some checks reported errors
continuous-integration/drone/push Build was killed
and one I can't do anything about.
2020-01-14 23:46:42 +01:00
0596406113
Silence false positive clang-tidy warnings in log.hpp. 2020-01-14 23:45:39 +01:00
59a9747c06
Add account_id and list_id to list of parameters to replace in URIs.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-14 22:50:14 +01:00
0d8caf93e2
Fixed endpoint translations. 2020-01-14 22:47:23 +01:00
c192f352f0
Extract post formats via regex.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-14 22:28:14 +01:00
0d8b2e8490
Use regex to extract NodeInfo addresses. 2020-01-14 21:53:42 +01:00
223db7b255
Use regex to extract max_toot_chars. 2020-01-14 21:03:04 +01:00
a8e342202d
Move types into types.hpp and add answer_type::next() and prev(). 2020-01-14 20:44:08 +01:00
1b4ad05acb
Add set_useragent(). 2020-01-12 17:37:06 +01:00
04526f37cc
Make argument of CURLWrapper::set_cafile() const. 2020-01-12 17:27:40 +01:00
975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +01:00
deeffc5adf
Bugfix in endpoint translation. 2020-01-12 16:06:44 +01:00
79c5087ca5
Marked some functions noexcept.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-12 15:28:26 +01:00
97eb269865
Add Instance::set_cainfo(). 2020-01-12 13:37:53 +01:00
cd31af94a6
Bugfix in endpoint translation. 2020-01-12 11:45:15 +01:00
fd5275f4a3
Return default max chars on exception in get_max_chars(). 2020-01-11 23:04:40 +01:00
1a99e8a276
Made code in Connection::get_new_events() clearer. 2020-01-11 22:16:37 +01:00
a6b328c2d1
Add Instance::get_post_formats().
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 20:05:11 +01:00
b9bf28c264
Add Instance::get_nodeinfo(). 2020-01-11 19:51:16 +01:00
40d985f9af
Add missing header. 2020-01-11 18:13:15 +01:00
597cf41668
Don't check errors if it can't fail.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 18:08:33 +01:00
078f6d0c73
Log URI replacements. 2020-01-11 16:42:01 +01:00
4a940062d8
Fix wrong endpoint translations.
I forgot a lot of <ID>s.
2020-01-11 16:40:13 +01:00
5c61d6fd27
Add support for DELETE requests. 2020-01-11 16:24:06 +01:00
c67c9db40c
Fix wrong endpoint translations. 2020-01-11 16:13:14 +01:00
f556df296f
Add HTTP methods PATCH and PUT. 2020-01-11 16:07:40 +01:00
5051664136
Fixed some pleroma endpoints. 2020-01-11 15:56:16 +01:00
8d04f7e9ea
Add support for sending files in HTTP forms. 2020-01-11 14:36:49 +01:00
f0a35bfd5b
Add add_mime_part().
Makes code more readable and decreases duplication.
2020-01-11 13:17:35 +01:00
7ac1bc1377
Hide CURLWrapper::cancel_stream(). 2020-01-10 18:57:42 +01:00
796e159cdc
Actually set the proxy to the string in CURLWrappper::set_proxy(). 2020-01-10 18:50:53 +01:00
f601e770ac
Define CURLAUTH_BEARER as CURLAUTH_ANY with libcurl < 7.61.0
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-10 17:43:50 +01:00
20167fdce3
Replace if constexpr with preprocessor if.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-10 17:15:23 +01:00
c47a62969f
Only use CURLAUTH_BEARER if libcurl supports it.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-10 17:10:36 +01:00