From f16e6d61e0acb1ef369ca99c9bdb3d8385ed499f Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 18 Apr 2020 15:23:44 +0200 Subject: [PATCH 1/2] Remove unused using declaration. --- include/instance.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/instance.hpp b/include/instance.hpp index 214be77..3a0e2a3 100644 --- a/include/instance.hpp +++ b/include/instance.hpp @@ -32,7 +32,6 @@ namespace mastodonpp using std::uint64_t; using std::string; using std::string_view; -using std::move; using std::vector; /*! From d20818221daaade785639e853d315e7811540bdc Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 18 Apr 2020 15:24:12 +0200 Subject: [PATCH 2/2] Add Support for Pleroma 2.0.2. Add endpoint: /api/pleroma/admin/users/:nickname/update_credentials --- include/api.hpp | 3 ++- src/api.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/api.hpp b/include/api.hpp index b37d282..5d0cbe1 100644 --- a/include/api.hpp +++ b/include/api.hpp @@ -31,7 +31,7 @@ using std::variant; /*! * @brief Holds %API endpoints. * - * Supported %API endpoints: Mastodon 3.0.1, Pleroma 2.0.0. + * Supported %API endpoints: Mastodon 3.0.1, Pleroma 2.0.2. * * @since 0.1.0 * @@ -271,6 +271,7 @@ public: admin_users_revoke_invite, admin_users_email_invite, admin_users_nickname_password_reset, + admin_users_nickname_update_credentials, admin_users_force_password_reset, admin_reports, admin_grouped_reports, diff --git a/src/api.cpp b/src/api.cpp index e15dd73..a86dbad 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -234,6 +234,8 @@ const map API::_endpoint_map "/api/pleroma/admin/users/email_invite"}, {pleroma::admin_users_nickname_password_reset, "/api/pleroma/admin/users//password_reset"}, + {pleroma::admin_users_nickname_update_credentials, + "/api/pleroma/admin/users//update_credentials"}, {pleroma::admin_users_force_password_reset, "/api/pleroma/admin/users/force_password_reset"}, {pleroma::admin_reports, "/api/pleroma/admin/reports"},