Renamed send_toot to send_post, made send_toot an alias for send_post
This commit is contained in:
parent
81efd8bc1c
commit
2565ff8d15
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastodon-cpp
|
||||
VERSION 0.18.0
|
||||
VERSION 0.18.1
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -285,6 +285,13 @@ public:
|
|||
*
|
||||
* @return The new Easy::Status
|
||||
*
|
||||
* @since 0.18.1
|
||||
*/
|
||||
const Status send_post(const Status &status, uint_fast16_t error = 0);
|
||||
|
||||
/*!
|
||||
* @brief Alias for send_post()
|
||||
*
|
||||
* @since 0.17.0
|
||||
*/
|
||||
const Status send_toot(const Status &status, uint_fast16_t error = 0);
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
using namespace Mastodon;
|
||||
|
||||
const Easy::Status Easy::send_toot(const Status &status, uint_fast16_t error)
|
||||
{
|
||||
return send_post(status, error);
|
||||
}
|
||||
|
||||
const Easy::Status Easy::send_post(const Status &status, uint_fast16_t error)
|
||||
{
|
||||
API::parametermap parameters;
|
||||
string answer;
|
||||
|
|
Reference in New Issue