Added GET /api/v1/endorsements, POST /api/v1/accounts/:id/pin, POST /api/v1/accounts/:id/unpin

This commit is contained in:
tastytea 2018-11-17 20:54:23 +01:00
parent ad7ac09ae1
commit 22c217d3da
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 12 additions and 0 deletions

View File

@ -144,6 +144,9 @@ const uint_fast16_t API::get(const Mastodon::API::v1 &call,
case v1::push_subscription:
strcall = "/api/v1/push/subscription";
break;
case v1::endorsements:
strcall = "/api/v1/endorsements";
break;
default:
ttdebug << "ERROR: Invalid call.\n";
return 11;

View File

@ -116,6 +116,12 @@ const uint_fast16_t API::post(const Mastodon::API::v1 &call,
case v1::push_subscription:
strcall = "/api/v1/push/subscription";
break;
case v1::accounts_id_pin:
strcall = "/api/v1/accounts/" + strid + "/pin";
break;
case v1::accounts_id_unpin:
strcall = "/api/v1/accounts/" + strid + "/unpin";
break;
default:
ttdebug << "ERROR: Invalid call.\n";
return 11;

View File

@ -206,6 +206,7 @@ public:
accounts_search,
blocks,
domain_blocks,
endorsements,
favourites,
follow_requests,
instance,
@ -237,6 +238,8 @@ public:
accounts_id_unblock,
accounts_id_mute,
accounts_id_unmute,
accounts_id_pin,
accounts_id_unpin,
apps,
follow_requests_id_authorize,
follow_requests_id_reject,