summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortastytea2020-04-18 15:24:12 +0200
committertastytea2020-04-18 15:25:49 +0200
commitd20818221daaade785639e853d315e7811540bdc (patch)
tree8f11210414e1c19e60304ab496aa8728b5309c13
parentf16e6d61e0acb1ef369ca99c9bdb3d8385ed499f (diff)
downloadmastodonpp-d20818221daaade785639e853d315e7811540bdc.tar
mastodonpp-d20818221daaade785639e853d315e7811540bdc.tar.gz
mastodonpp-d20818221daaade785639e853d315e7811540bdc.zip
Add Support for Pleroma 2.0.2.
Add endpoint: /api/pleroma/admin/users/:nickname/update_credentials
-rw-r--r--include/api.hpp3
-rw-r--r--src/api.cpp2
2 files changed, 4 insertions, 1 deletions
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_type,string_view> API::_endpoint_map
"/api/pleroma/admin/users/email_invite"},
{pleroma::admin_users_nickname_password_reset,
"/api/pleroma/admin/users/<NICKNAME>/password_reset"},
+ {pleroma::admin_users_nickname_update_credentials,
+ "/api/pleroma/admin/users/<NICKNAME>/update_credentials"},
{pleroma::admin_users_force_password_reset,
"/api/pleroma/admin/users/force_password_reset"},
{pleroma::admin_reports, "/api/pleroma/admin/reports"},